﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsReport" targetNamespace="http://tempuri.org/dsReport.xsd" xmlns:mstns="http://tempuri.org/dsReport.xsd" xmlns="http://tempuri.org/dsReport.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="CrewManagmentConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CrewManagmentConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.QLTV.Properties.Settings.GlobalReference.Default.CrewManagmentConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblAssignmentTableAdapter" GeneratorDataComponentClassName="tblAssignmentTableAdapter" Name="tblAssignment" UserDataComponentName="tblAssignmentTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblAssignment" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[tblAssignment] WHERE (([nAssignmentId] = @Original_nAssignmentId) AND ((@IsNull_nCrewid = 1 AND [nCrewid] IS NULL) OR ([nCrewid] = @Original_nCrewid)) AND ((@IsNull_nVesselId = 1 AND [nVesselId] IS NULL) OR ([nVesselId] = @Original_nVesselId)) AND ((@IsNull_cStatus = 1 AND [cStatus] IS NULL) OR ([cStatus] = @Original_cStatus)) AND ((@IsNull_cDescription = 1 AND [cDescription] IS NULL) OR ([cDescription] = @Original_cDescription)) AND ((@IsNull_dEmbarked = 1 AND [dEmbarked] IS NULL) OR ([dEmbarked] = @Original_dEmbarked)) AND ((@IsNull_nContract = 1 AND [nContract] IS NULL) OR ([nContract] = @Original_nContract)) AND ((@IsNull_dLeave = 1 AND [dLeave] IS NULL) OR ([dLeave] = @Original_dLeave)) AND ((@IsNull_nRequest = 1 AND [nRequest] IS NULL) OR ([nRequest] = @Original_nRequest)) AND ((@IsNull_dDuKienRoiTau = 1 AND [dDuKienRoiTau] IS NULL) OR ([dDuKienRoiTau] = @Original_dDuKienRoiTau)) AND ((@IsNull_dSanSangLenTau = 1 AND [dSanSangLenTau] IS NULL) OR ([dSanSangLenTau] = @Original_dSanSangLenTau)) AND ((@IsNull_dCatHopDong = 1 AND [dCatHopDong] IS NULL) OR ([dCatHopDong] = @Original_dCatHopDong)) AND ((@IsNull_dNghiHuu = 1 AND [dNghiHuu] IS NULL) OR ([dNghiHuu] = @Original_dNghiHuu)) AND ((@IsNull_dKyHopDong = 1 AND [dKyHopDong] IS NULL) OR ([dKyHopDong] = @Original_dKyHopDong)) AND ((@IsNull_dModified = 1 AND [dModified] IS NULL) OR ([dModified] = @Original_dModified)) AND ((@IsNull_isActive = 1 AND [isActive] IS NULL) OR ([isActive] = @Original_isActive)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nAssignmentId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nAssignmentId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nCrewid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nCrewid" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_nCrewid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nCrewid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nVesselId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nVesselId" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nVesselId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dEmbarked" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dEmbarked" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dEmbarked" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dEmbarked" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nContract" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nContract" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nContract" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nContract" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dLeave" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dLeave" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dLeave" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dLeave" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRequest" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dDuKienRoiTau" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dDuKienRoiTau" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dDuKienRoiTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dDuKienRoiTau" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dSanSangLenTau" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dSanSangLenTau" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dSanSangLenTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dSanSangLenTau" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dCatHopDong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dCatHopDong" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dCatHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dCatHopDong" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dNghiHuu" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dNghiHuu" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dNghiHuu" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dNghiHuu" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dKyHopDong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dKyHopDong" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dKyHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dKyHopDong" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dModified" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dModified" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dModified" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dModified" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_isActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="isActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_isActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[tblAssignment] ([nCrewid], [nVesselId], [cStatus], [cDescription], [dEmbarked], [nContract], [dLeave], [nRequest], [dDuKienRoiTau], [dSanSangLenTau], [dCatHopDong], [dNghiHuu], [dKyHopDong], [dModified], [isActive]) VALUES (@nCrewid, @nVesselId, @cStatus, @cDescription, @dEmbarked, @nContract, @dLeave, @nRequest, @dDuKienRoiTau, @dSanSangLenTau, @dCatHopDong, @dNghiHuu, @dKyHopDong, @dModified, @isActive);
SELECT nAssignmentId, nCrewid, nVesselId, cStatus, cDescription, dEmbarked, nContract, dLeave, nRequest, dDuKienRoiTau, dSanSangLenTau, dCatHopDong, dNghiHuu, dKyHopDong, dModified, isActive FROM tblAssignment WHERE (nAssignmentId = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@nCrewid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nCrewid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nVesselId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dEmbarked" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dEmbarked" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nContract" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nContract" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dLeave" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dLeave" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dDuKienRoiTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dDuKienRoiTau" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dSanSangLenTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dSanSangLenTau" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dCatHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dCatHopDong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dNghiHuu" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dNghiHuu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dKyHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dKyHopDong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dModified" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dModified" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT nAssignmentId, nCrewid, nVesselId, cStatus, cDescription, dEmbarked, nContract, dLeave, nRequest, dDuKienRoiTau, dSanSangLenTau, dCatHopDong, dNghiHuu, dKyHopDong, dModified, isActive FROM dbo.tblAssignment</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[tblAssignment] SET [nCrewid] = @nCrewid, [nVesselId] = @nVesselId, [cStatus] = @cStatus, [cDescription] = @cDescription, [dEmbarked] = @dEmbarked, [nContract] = @nContract, [dLeave] = @dLeave, [nRequest] = @nRequest, [dDuKienRoiTau] = @dDuKienRoiTau, [dSanSangLenTau] = @dSanSangLenTau, [dCatHopDong] = @dCatHopDong, [dNghiHuu] = @dNghiHuu, [dKyHopDong] = @dKyHopDong, [dModified] = @dModified, [isActive] = @isActive WHERE (([nAssignmentId] = @Original_nAssignmentId) AND ((@IsNull_nCrewid = 1 AND [nCrewid] IS NULL) OR ([nCrewid] = @Original_nCrewid)) AND ((@IsNull_nVesselId = 1 AND [nVesselId] IS NULL) OR ([nVesselId] = @Original_nVesselId)) AND ((@IsNull_cStatus = 1 AND [cStatus] IS NULL) OR ([cStatus] = @Original_cStatus)) AND ((@IsNull_cDescription = 1 AND [cDescription] IS NULL) OR ([cDescription] = @Original_cDescription)) AND ((@IsNull_dEmbarked = 1 AND [dEmbarked] IS NULL) OR ([dEmbarked] = @Original_dEmbarked)) AND ((@IsNull_nContract = 1 AND [nContract] IS NULL) OR ([nContract] = @Original_nContract)) AND ((@IsNull_dLeave = 1 AND [dLeave] IS NULL) OR ([dLeave] = @Original_dLeave)) AND ((@IsNull_nRequest = 1 AND [nRequest] IS NULL) OR ([nRequest] = @Original_nRequest)) AND ((@IsNull_dDuKienRoiTau = 1 AND [dDuKienRoiTau] IS NULL) OR ([dDuKienRoiTau] = @Original_dDuKienRoiTau)) AND ((@IsNull_dSanSangLenTau = 1 AND [dSanSangLenTau] IS NULL) OR ([dSanSangLenTau] = @Original_dSanSangLenTau)) AND ((@IsNull_dCatHopDong = 1 AND [dCatHopDong] IS NULL) OR ([dCatHopDong] = @Original_dCatHopDong)) AND ((@IsNull_dNghiHuu = 1 AND [dNghiHuu] IS NULL) OR ([dNghiHuu] = @Original_dNghiHuu)) AND ((@IsNull_dKyHopDong = 1 AND [dKyHopDong] IS NULL) OR ([dKyHopDong] = @Original_dKyHopDong)) AND ((@IsNull_dModified = 1 AND [dModified] IS NULL) OR ([dModified] = @Original_dModified)) AND ((@IsNull_isActive = 1 AND [isActive] IS NULL) OR ([isActive] = @Original_isActive)));
SELECT nAssignmentId, nCrewid, nVesselId, cStatus, cDescription, dEmbarked, nContract, dLeave, nRequest, dDuKienRoiTau, dSanSangLenTau, dCatHopDong, dNghiHuu, dKyHopDong, dModified, isActive FROM tblAssignment WHERE (nAssignmentId = @nAssignmentId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@nCrewid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nCrewid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nVesselId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dEmbarked" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dEmbarked" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nContract" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nContract" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dLeave" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dLeave" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dDuKienRoiTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dDuKienRoiTau" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dSanSangLenTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dSanSangLenTau" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dCatHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dCatHopDong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dNghiHuu" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dNghiHuu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dKyHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dKyHopDong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dModified" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dModified" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nAssignmentId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nAssignmentId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nCrewid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nCrewid" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_nCrewid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nCrewid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nVesselId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nVesselId" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nVesselId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dEmbarked" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dEmbarked" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dEmbarked" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dEmbarked" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nContract" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nContract" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nContract" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nContract" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dLeave" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dLeave" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dLeave" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dLeave" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRequest" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dDuKienRoiTau" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dDuKienRoiTau" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dDuKienRoiTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dDuKienRoiTau" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dSanSangLenTau" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dSanSangLenTau" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dSanSangLenTau" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dSanSangLenTau" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dCatHopDong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dCatHopDong" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dCatHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dCatHopDong" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dNghiHuu" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dNghiHuu" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dNghiHuu" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dNghiHuu" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dKyHopDong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dKyHopDong" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dKyHopDong" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dKyHopDong" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dModified" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dModified" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dModified" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dModified" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_isActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="isActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_isActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="nAssignmentId" ColumnName="nAssignmentId" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@nAssignmentId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nAssignmentId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nAssignmentId" DataSetColumn="nAssignmentId" />
              <Mapping SourceColumn="nCrewid" DataSetColumn="nCrewid" />
              <Mapping SourceColumn="nVesselId" DataSetColumn="nVesselId" />
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="cDescription" DataSetColumn="cDescription" />
              <Mapping SourceColumn="dEmbarked" DataSetColumn="dEmbarked" />
              <Mapping SourceColumn="nContract" DataSetColumn="nContract" />
              <Mapping SourceColumn="dLeave" DataSetColumn="dLeave" />
              <Mapping SourceColumn="nRequest" DataSetColumn="nRequest" />
              <Mapping SourceColumn="dDuKienRoiTau" DataSetColumn="dDuKienRoiTau" />
              <Mapping SourceColumn="dSanSangLenTau" DataSetColumn="dSanSangLenTau" />
              <Mapping SourceColumn="dCatHopDong" DataSetColumn="dCatHopDong" />
              <Mapping SourceColumn="dNghiHuu" DataSetColumn="dNghiHuu" />
              <Mapping SourceColumn="dKyHopDong" DataSetColumn="dKyHopDong" />
              <Mapping SourceColumn="dModified" DataSetColumn="dModified" />
              <Mapping SourceColumn="isActive" DataSetColumn="isActive" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblCrewTableAdapter" GeneratorDataComponentClassName="tblCrewTableAdapter" Name="tblCrew" UserDataComponentName="tblCrewTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.nCrewId, tblCrew.nRankID, tblCrew.iCrewType, tblCrew.bImage, tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblCrew.cCMT, 
                         tblCrew.dNgayCap, tblCrew.nNoiCap, tblCrew.cAlias, tblCrew.dDateOfBirth, tblCrew.cAddress, tblCrew.cPlaceOfBirth, tblCrew.cHomeNo, tblCrew.cHandNo, 
                         tblCrew.cEmail, tblCrew.cSex, tblCrew.cMaritalStatus, tblCrew.cNationality, tblCrew.cContactPerson, tblCrew.cContactPersonAddress, tblCrew.cContactPersonNo, 
                         tblCrew.cContactRelation, tblCrew.cContactEmail, tblCrew.fHeight, tblCrew.fWeight, tblCrew.cBloodGroup, tblCrew.fShoeSizeVN, tblCrew.fShoeSizeJP, 
                         tblCrew.fOverallSizeVN, tblCrew.cOverallSizeJP, tblCrew.bDeleted, tblRank.cRankName, tblCrew.TinhThanhID, tblCrew.QuanHuyenID, tblCrew.PhuongXaID, 
                         tblCrew.ContactTinhThanh, tblCrew.ContactQuanHuyenId, tblCrew.ContactPhuongXaID
FROM            tblCrew INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nCrewId" DataSetColumn="nCrewId" />
              <Mapping SourceColumn="nRankID" DataSetColumn="nRankID" />
              <Mapping SourceColumn="iCrewType" DataSetColumn="iCrewType" />
              <Mapping SourceColumn="bImage" DataSetColumn="bImage" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="cCMT" DataSetColumn="cCMT" />
              <Mapping SourceColumn="dNgayCap" DataSetColumn="dNgayCap" />
              <Mapping SourceColumn="nNoiCap" DataSetColumn="nNoiCap" />
              <Mapping SourceColumn="cAlias" DataSetColumn="cAlias" />
              <Mapping SourceColumn="dDateOfBirth" DataSetColumn="dDateOfBirth" />
              <Mapping SourceColumn="cAddress" DataSetColumn="cAddress" />
              <Mapping SourceColumn="cPlaceOfBirth" DataSetColumn="cPlaceOfBirth" />
              <Mapping SourceColumn="cHomeNo" DataSetColumn="cHomeNo" />
              <Mapping SourceColumn="cHandNo" DataSetColumn="cHandNo" />
              <Mapping SourceColumn="cEmail" DataSetColumn="cEmail" />
              <Mapping SourceColumn="cSex" DataSetColumn="cSex" />
              <Mapping SourceColumn="cMaritalStatus" DataSetColumn="cMaritalStatus" />
              <Mapping SourceColumn="cNationality" DataSetColumn="cNationality" />
              <Mapping SourceColumn="cContactPerson" DataSetColumn="cContactPerson" />
              <Mapping SourceColumn="cContactPersonAddress" DataSetColumn="cContactPersonAddress" />
              <Mapping SourceColumn="cContactPersonNo" DataSetColumn="cContactPersonNo" />
              <Mapping SourceColumn="cContactRelation" DataSetColumn="cContactRelation" />
              <Mapping SourceColumn="cContactEmail" DataSetColumn="cContactEmail" />
              <Mapping SourceColumn="fHeight" DataSetColumn="fHeight" />
              <Mapping SourceColumn="fWeight" DataSetColumn="fWeight" />
              <Mapping SourceColumn="cBloodGroup" DataSetColumn="cBloodGroup" />
              <Mapping SourceColumn="fShoeSizeVN" DataSetColumn="fShoeSizeVN" />
              <Mapping SourceColumn="fShoeSizeJP" DataSetColumn="fShoeSizeJP" />
              <Mapping SourceColumn="fOverallSizeVN" DataSetColumn="fOverallSizeVN" />
              <Mapping SourceColumn="cOverallSizeJP" DataSetColumn="cOverallSizeJP" />
              <Mapping SourceColumn="bDeleted" DataSetColumn="bDeleted" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="TinhThanhID" DataSetColumn="TinhThanhID" />
              <Mapping SourceColumn="QuanHuyenID" DataSetColumn="QuanHuyenID" />
              <Mapping SourceColumn="PhuongXaID" DataSetColumn="PhuongXaID" />
              <Mapping SourceColumn="ContactTinhThanh" DataSetColumn="ContactTinhThanh" />
              <Mapping SourceColumn="ContactQuanHuyenId" DataSetColumn="ContactQuanHuyenId" />
              <Mapping SourceColumn="ContactPhuongXaID" DataSetColumn="ContactPhuongXaID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DiaChiLienHe" Modifier="Public" Name="DiaChiLienHe" QueryType="Scalar" ScalarCallRetval="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DiaChiLienHe">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cContactPersonAddress + '-' + tblPhuongXa.TenPhuongXa + '-' + tblQuanHuyen.TenQuanHuyen + '- ' + tblTinhThanh.TenTinhThanh AS DiaChiLienHe
FROM            tblCrew INNER JOIN
                         tblPhuongXa ON tblCrew.ContactPhuongXaID = tblPhuongXa.PhuongXaID INNER JOIN
                         tblQuanHuyen ON tblPhuongXa.QuanHuyenID = tblQuanHuyen.QuanHuyenID INNER JOIN
                         tblTinhThanh ON tblQuanHuyen.TinhThanhID = tblTinhThanh.TinhThanhID
WHERE        (tblCrew.nCrewId = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="nCrewId" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="nCrewId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByID" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByID" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.nCrewId, tblCrew.nRankID, tblCrew.iCrewType, tblCrew.bImage, tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblCrew.cCMT, 
                         tblCrew.dNgayCap, tblCrew.nNoiCap, tblCrew.cAlias, tblCrew.dDateOfBirth, tblCrew.cAddress, tblCrew.cPlaceOfBirth, tblCrew.cHomeNo, tblCrew.cHandNo, 
                         tblCrew.cEmail, tblCrew.cSex, tblCrew.cMaritalStatus, tblCrew.cNationality, tblCrew.cContactPerson, tblCrew.cContactPersonAddress, tblCrew.cContactPersonNo, 
                         tblCrew.cContactRelation, tblCrew.cContactEmail, tblCrew.fHeight, tblCrew.fWeight, tblCrew.cBloodGroup, tblCrew.fShoeSizeVN, tblCrew.fShoeSizeJP, 
                         tblCrew.fOverallSizeVN, tblCrew.cOverallSizeJP, tblCrew.bDeleted, tblRank.cRankName
FROM            tblCrew INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId
where    tblCrew.nCrewId=@id</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="nCrewId" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="nCrewId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByListID" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByListID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillByListID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.nCrewId, tblCrew.nRankID, tblCrew.iCrewType, tblCrew.bImage, tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblCrew.cCMT, 
                         tblCrew.dNgayCap, tblCrew.nNoiCap, tblCrew.cAlias, tblCrew.dDateOfBirth, tblCrew.cAddress, tblCrew.cPlaceOfBirth, tblCrew.cHomeNo, tblCrew.cHandNo, 
                         tblCrew.cEmail, tblCrew.cSex, tblCrew.cMaritalStatus, tblCrew.cNationality, tblCrew.cContactPerson, tblCrew.cContactPersonAddress, tblCrew.cContactPersonNo, 
                         tblCrew.cContactRelation, tblCrew.cContactEmail, tblCrew.fHeight, tblCrew.fWeight, tblCrew.cBloodGroup, tblCrew.fShoeSizeVN, tblCrew.fShoeSizeJP, 
                         tblCrew.fOverallSizeVN, tblCrew.cOverallSizeJP, tblCrew.bDeleted, tblRank.cRankName, tblCrew.TinhThanhID, tblCrew.QuanHuyenID, tblCrew.PhuongXaID, 
                         tblCrew.ContactTinhThanh, tblCrew.ContactQuanHuyenId, tblCrew.ContactPhuongXaID
FROM            tblCrew INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId
WHERE        (tblCrew.nCrewId IN (@listID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="listID" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@listID" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="getDiaChi" Modifier="Public" Name="getDiaChi" QueryType="Scalar" ScalarCallRetval="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="getDiaChi">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cAddress + '-' + tblPhuongXa.TenPhuongXa + '-' + tblQuanHuyen.TenQuanHuyen + '- ' + tblTinhThanh.TenTinhThanh AS DiaChi
FROM            tblCrew INNER JOIN
                         tblPhuongXa ON tblCrew.PhuongXaID = tblPhuongXa.PhuongXaID INNER JOIN
                         tblQuanHuyen ON tblPhuongXa.QuanHuyenID = tblQuanHuyen.QuanHuyenID INNER JOIN
                         tblTinhThanh ON tblQuanHuyen.TinhThanhID = tblTinhThanh.TinhThanhID
WHERE        (tblCrew.nCrewId = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="nCrewId" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="nCrewId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblCrewTypeTableAdapter" GeneratorDataComponentClassName="tblCrewTypeTableAdapter" Name="tblCrewType" UserDataComponentName="tblCrewTypeTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblCrewType" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[tblCrewType] WHERE (([id] = @Original_id) AND ((@IsNull_cTypeName = 1 AND [cTypeName] IS NULL) OR ([cTypeName] = @Original_cTypeName)) AND ((@IsNull_Prefix = 1 AND [Prefix] IS NULL) OR ([Prefix] = @Original_Prefix)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cTypeName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cTypeName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cTypeName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Prefix" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Prefix" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Prefix" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Prefix" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[tblCrewType] ([cTypeName], [Prefix]) VALUES (@cTypeName, @Prefix);
SELECT id, cTypeName, Prefix FROM tblCrewType WHERE (id = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cTypeName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Prefix" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Prefix" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT id, cTypeName, Prefix FROM dbo.tblCrewType</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[tblCrewType] SET [cTypeName] = @cTypeName, [Prefix] = @Prefix WHERE (([id] = @Original_id) AND ((@IsNull_cTypeName = 1 AND [cTypeName] IS NULL) OR ([cTypeName] = @Original_cTypeName)) AND ((@IsNull_Prefix = 1 AND [Prefix] IS NULL) OR ([Prefix] = @Original_Prefix)));
SELECT id, cTypeName, Prefix FROM tblCrewType WHERE (id = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cTypeName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Prefix" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Prefix" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cTypeName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cTypeName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cTypeName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Prefix" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Prefix" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Prefix" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Prefix" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="cTypeName" DataSetColumn="cTypeName" />
              <Mapping SourceColumn="Prefix" DataSetColumn="Prefix" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblRankTableAdapter" GeneratorDataComponentClassName="tblRankTableAdapter" Name="tblRank" UserDataComponentName="tblRankTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblRank" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [tblRank] WHERE (([nRankId] = @Original_nRankId) AND ((@IsNull_cRankName = 1 AND [cRankName] IS NULL) OR ([cRankName] = @Original_cRankName)) AND ((@IsNull_nRankLevel = 1 AND [nRankLevel] IS NULL) OR ([nRankLevel] = @Original_nRankLevel)) AND ((@IsNull_cRankDescription = 1 AND [cRankDescription] IS NULL) OR ([cRankDescription] = @Original_cRankDescription)) AND ((@IsNull_iRankType = 1 AND [iRankType] IS NULL) OR ([iRankType] = @Original_iRankType)) AND ((@IsNull_BasicMonthlyWages = 1 AND [BasicMonthlyWages] IS NULL) OR ([BasicMonthlyWages] = @Original_BasicMonthlyWages)) AND ((@IsNull_Overtime_A = 1 AND [Overtime A] IS NULL) OR ([Overtime A] = @Original_Overtime_A)) AND ((@IsNull_Overtime_B = 1 AND [Overtime B] IS NULL) OR ([Overtime B] = @Original_Overtime_B)) AND ((@IsNull_SubsisAllowence = 1 AND [SubsisAllowence] IS NULL) OR ([SubsisAllowence] = @Original_SubsisAllowence)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nRankId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cRankName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cRankName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cRankName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nRankLevel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankLevel" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nRankLevel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankLevel" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cRankDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cRankDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cRankDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_iRankType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="iRankType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_iRankType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="iRankType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BasicMonthlyWages" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BasicMonthlyWages" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_BasicMonthlyWages" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BasicMonthlyWages" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Overtime_A" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Overtime A" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Overtime_A" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime A" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Overtime_B" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Overtime B" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Overtime_B" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime B" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SubsisAllowence" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SubsisAllowence" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_SubsisAllowence" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="SubsisAllowence" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblRank] ([cRankName], [nRankLevel], [cRankDescription], [iRankType], [BasicMonthlyWages], [Overtime A], [Overtime B], [SubsisAllowence]) VALUES (@cRankName, @nRankLevel, @cRankDescription, @iRankType, @BasicMonthlyWages, @Overtime_A, @Overtime_B, @SubsisAllowence);
SELECT nRankId, cRankName, nRankLevel, cRankDescription, iRankType, BasicMonthlyWages, [Overtime A], [Overtime B], SubsisAllowence FROM tblRank WHERE (nRankId = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cRankName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nRankLevel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankLevel" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cRankDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@iRankType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="iRankType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@BasicMonthlyWages" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BasicMonthlyWages" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Overtime_A" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime A" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Overtime_B" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime B" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@SubsisAllowence" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="SubsisAllowence" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        nRankId, cRankName, nRankLevel, cRankDescription, iRankType, BasicMonthlyWages, [Overtime A], [Overtime B], SubsisAllowence
FROM            tblRank</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [tblRank] SET [cRankName] = @cRankName, [nRankLevel] = @nRankLevel, [cRankDescription] = @cRankDescription, [iRankType] = @iRankType, [BasicMonthlyWages] = @BasicMonthlyWages, [Overtime A] = @Overtime_A, [Overtime B] = @Overtime_B, [SubsisAllowence] = @SubsisAllowence WHERE (([nRankId] = @Original_nRankId) AND ((@IsNull_cRankName = 1 AND [cRankName] IS NULL) OR ([cRankName] = @Original_cRankName)) AND ((@IsNull_nRankLevel = 1 AND [nRankLevel] IS NULL) OR ([nRankLevel] = @Original_nRankLevel)) AND ((@IsNull_cRankDescription = 1 AND [cRankDescription] IS NULL) OR ([cRankDescription] = @Original_cRankDescription)) AND ((@IsNull_iRankType = 1 AND [iRankType] IS NULL) OR ([iRankType] = @Original_iRankType)) AND ((@IsNull_BasicMonthlyWages = 1 AND [BasicMonthlyWages] IS NULL) OR ([BasicMonthlyWages] = @Original_BasicMonthlyWages)) AND ((@IsNull_Overtime_A = 1 AND [Overtime A] IS NULL) OR ([Overtime A] = @Original_Overtime_A)) AND ((@IsNull_Overtime_B = 1 AND [Overtime B] IS NULL) OR ([Overtime B] = @Original_Overtime_B)) AND ((@IsNull_SubsisAllowence = 1 AND [SubsisAllowence] IS NULL) OR ([SubsisAllowence] = @Original_SubsisAllowence)));
SELECT nRankId, cRankName, nRankLevel, cRankDescription, iRankType, BasicMonthlyWages, [Overtime A], [Overtime B], SubsisAllowence FROM tblRank WHERE (nRankId = @nRankId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cRankName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@nRankLevel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankLevel" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cRankDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@iRankType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="iRankType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@BasicMonthlyWages" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BasicMonthlyWages" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Overtime_A" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime A" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Overtime_B" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime B" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@SubsisAllowence" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="SubsisAllowence" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nRankId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cRankName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cRankName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cRankName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nRankLevel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankLevel" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_nRankLevel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nRankLevel" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cRankDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cRankDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cRankDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cRankDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_iRankType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="iRankType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_iRankType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="iRankType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BasicMonthlyWages" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BasicMonthlyWages" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_BasicMonthlyWages" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BasicMonthlyWages" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Overtime_A" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Overtime A" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Overtime_A" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime A" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Overtime_B" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Overtime B" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Overtime_B" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Overtime B" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SubsisAllowence" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SubsisAllowence" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_SubsisAllowence" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="SubsisAllowence" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="nRankId" ColumnName="nRankId" DataSourceName="CrewManagment.dbo.tblRank" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@nRankId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nRankId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nRankId" DataSetColumn="nRankId" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
              <Mapping SourceColumn="cRankDescription" DataSetColumn="cRankDescription" />
              <Mapping SourceColumn="iRankType" DataSetColumn="iRankType" />
              <Mapping SourceColumn="BasicMonthlyWages" DataSetColumn="BasicMonthlyWages" />
              <Mapping SourceColumn="Overtime A" DataSetColumn="Overtime A" />
              <Mapping SourceColumn="Overtime B" DataSetColumn="Overtime B" />
              <Mapping SourceColumn="SubsisAllowence" DataSetColumn="SubsisAllowence" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblRank" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        nRankId, cRankName, nRankLevel, cRankDescription, iRankType, BasicMonthlyWages, [Overtime A], [Overtime B], SubsisAllowence
FROM            tblRank
where nRankId=@id</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="nRankId" DataSourceName="CrewManagment.dbo.tblRank" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nRankId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadOnBoarList" GeneratorDataComponentClassName="tadOnBoarList" Name="tblOnBoarList" UserDataComponentName="tadOnBoarList">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.nVesselId, tblAssignment.dEmbarked, tblAssignment.cStatus, 
                         tblVessel.cVesselName, tblCrewType.cTypeName, tblRank.nRankLevel, tblCrew.nRankID, tblVesselGroup.cGroupName, tblFlag.cFlagCountry
FROM            tblVesselGroup INNER JOIN
                         tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblVessel ON tblAssignment.nVesselId = tblVessel.nVesselId ON tblVesselGroup.nGroupId = tblVessel.nGroupId INNER JOIN
                         tblFlag ON tblVessel.nFlagId = tblFlag.nFlagId RIGHT OUTER JOIN
                         tblCrewType INNER JOIN
                         tblRank ON tblCrewType.id = tblRank.iRankType ON tblCrew.nRankID = tblRank.nRankId
WHERE        (tblAssignment.cStatus = N'On Board') AND (tblAssignment.isActive = 1)
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="nVesselId" DataSetColumn="nVesselId" />
              <Mapping SourceColumn="dEmbarked" DataSetColumn="dEmbarked" />
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="cVesselName" DataSetColumn="cVesselName" />
              <Mapping SourceColumn="cTypeName" DataSetColumn="cTypeName" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
              <Mapping SourceColumn="nRankID" DataSetColumn="nRankID" />
              <Mapping SourceColumn="cGroupName" DataSetColumn="cGroupName" />
              <Mapping SourceColumn="cFlagCountry" DataSetColumn="cFlagCountry" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByGreater" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByGreater" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillByGreater">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.nVesselId, tblAssignment.dEmbarked, tblAssignment.cStatus, 
                         tblVessel.cVesselName, tblCrewType.cTypeName, tblRank.nRankLevel, tblCrew.nRankID, tblVesselGroup.cGroupName, tblFlag.cFlagCountry
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblVessel ON tblAssignment.nVesselId = tblVessel.nVesselId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id INNER JOIN
                         tblVesselGroup ON tblVessel.nGroupId = tblVesselGroup.nGroupId INNER JOIN
                         tblFlag ON tblVessel.nFlagId = tblFlag.nFlagId
WHERE        (tblAssignment.cStatus = N'On Board') AND (tblAssignment.isActive = 1) and tblAssignment.nVesselId &gt;@id
ORDER BY tblRank.nRankLevel asc
</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="nVesselId" DataSourceName="CrewManagment.dbo.tblAssignment" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByLessOrEqual" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByLessOrEqual" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillByLessOrEqual">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.nVesselId, tblAssignment.dEmbarked, tblAssignment.cStatus, 
                         tblVessel.cVesselName, tblCrewType.cTypeName, tblRank.nRankLevel, tblCrew.nRankID, tblVesselGroup.cGroupName, tblFlag.cFlagCountry
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblVessel ON tblAssignment.nVesselId = tblVessel.nVesselId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id INNER JOIN
                         tblVesselGroup ON tblVessel.nGroupId = tblVesselGroup.nGroupId INNER JOIN
                         tblFlag ON tblVessel.nFlagId = tblFlag.nFlagId
WHERE        (tblAssignment.cStatus = N'On Board') AND (tblAssignment.isActive = 1) and tblAssignment.nVesselId &lt;=@id
ORDER BY tblRank.nRankLevel
</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="nVesselId" DataSourceName="CrewManagment.dbo.tblAssignment" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByMiddle" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByMiddle" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="FillByMiddle">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.nVesselId, tblAssignment.dEmbarked, tblAssignment.cStatus, 
                         tblVessel.cVesselName, tblCrewType.cTypeName, tblRank.nRankLevel, tblCrew.nRankID, tblVesselGroup.cGroupName, tblFlag.cFlagCountry
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblVessel ON tblAssignment.nVesselId = tblVessel.nVesselId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id INNER JOIN
                         tblVesselGroup ON tblVessel.nGroupId = tblVesselGroup.nGroupId INNER JOIN
                         tblFlag ON tblVessel.nFlagId = tblFlag.nFlagId
WHERE        (tblAssignment.cStatus = N'On Board') AND (tblAssignment.isActive = 1) and
tblAssignment.nVesselId &gt;@id1 and tblAssignment.nVesselId &lt;=@id2
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id1" ColumnName="nVesselId" DataSourceName="CrewManagment.dbo.tblAssignment" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id1" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="id2" ColumnName="nVesselId" DataSourceName="CrewManagment.dbo.tblAssignment" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id2" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByVesselID" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByVesselID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="FillByVesselID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.nVesselId, tblAssignment.dEmbarked, tblAssignment.cStatus, 
                         tblVessel.cVesselName, tblCrewType.cTypeName, tblRank.nRankLevel, tblCrew.nRankID, tblVesselGroup.cGroupName, tblFlag.cFlagCountry
FROM            tblVesselGroup INNER JOIN
                         tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblVessel ON tblAssignment.nVesselId = tblVessel.nVesselId ON tblVesselGroup.nGroupId = tblVessel.nGroupId INNER JOIN
                         tblFlag ON tblVessel.nFlagId = tblFlag.nFlagId INNER JOIN
                         tblCrewType INNER JOIN
                         tblRank ON tblCrewType.id = tblRank.iRankType ON tblCrew.nRankID = tblRank.nRankId
WHERE        (tblAssignment.cStatus = N'On Board') AND (tblAssignment.isActive = 1) AND (tblAssignment.nVesselId = @id)
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="nVesselId" DataSourceName="CrewManagment.dbo.tblAssignment" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nVesselId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblCertificateCrewTableAdapter" GeneratorDataComponentClassName="tblCertificateCrewTableAdapter" Name="tblCertificateCrew" UserDataComponentName="tblCertificateCrewTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCertificateCrew.nCertificateCrew, tblCertificateCrew.nCertificationId, tblCertificateCrew.nCrewid, tblCertificateCrew.cIssuedBy, tblCertificateCrew.cNumber, 
                         tblCertificateCrew.dDateOfIssued, tblCertificateCrew.dDateOfExpire, tblCertification.cCertificationName
FROM            tblCertificateCrew INNER JOIN
                         tblCertification ON tblCertificateCrew.nCertificationId = tblCertification.nCertificationId</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nCertificateCrew" DataSetColumn="nCertificateCrew" />
              <Mapping SourceColumn="nCertificationId" DataSetColumn="nCertificationId" />
              <Mapping SourceColumn="nCrewid" DataSetColumn="nCrewid" />
              <Mapping SourceColumn="cIssuedBy" DataSetColumn="cIssuedBy" />
              <Mapping SourceColumn="cNumber" DataSetColumn="cNumber" />
              <Mapping SourceColumn="dDateOfIssued" DataSetColumn="dDateOfIssued" />
              <Mapping SourceColumn="dDateOfExpire" DataSetColumn="dDateOfExpire" />
              <Mapping SourceColumn="cCertificationName" DataSetColumn="cCertificationName" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByCrewID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCrewID" GeneratorSourceName="FillByCrewID" GetMethodModifier="Public" GetMethodName="GetDataByCrewID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCrewID" UserSourceName="FillByCrewID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCertificateCrew.nCertificateCrew, tblCertificateCrew.nCertificationId, tblCertificateCrew.nCrewid, tblCertificateCrew.cIssuedBy, tblCertificateCrew.cNumber, 
                         tblCertificateCrew.dDateOfIssued, tblCertificateCrew.dDateOfExpire, tblCertification.cCertificationName
FROM            tblCertificateCrew INNER JOIN
                         tblCertification ON tblCertificateCrew.nCertificationId = tblCertification.nCertificationId
WHERE        (tblCertificateCrew.nCrewid = @crewID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="crewID" ColumnName="nCrewid" DataSourceName="CrewManagment.dbo.tblCertificateCrew" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@crewID" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="nCrewid" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblEducationTableAdapter" GeneratorDataComponentClassName="tblEducationTableAdapter" Name="tblEducation" UserDataComponentName="tblEducationTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblEducation.nEducationId, tblEducation.cCrewID, tblEducation.nCource, tblEducation.cFinishYear, tblEducation.dPeriod, tblCourse.cCourseName, 
                         tblSchoolName.TenTruong, tblSchoolName.TenTiengAnh
FROM            tblEducation INNER JOIN
                         tblSchoolName ON tblEducation.cSchoolName = tblSchoolName.id INNER JOIN
                         tblCourse ON tblEducation.nCource = tblCourse.nCourse</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nEducationId" DataSetColumn="nEducationId" />
              <Mapping SourceColumn="cCrewID" DataSetColumn="cCrewID" />
              <Mapping SourceColumn="nCource" DataSetColumn="nCource" />
              <Mapping SourceColumn="cFinishYear" DataSetColumn="cFinishYear" />
              <Mapping SourceColumn="dPeriod" DataSetColumn="dPeriod" />
              <Mapping SourceColumn="cCourseName" DataSetColumn="cCourseName" />
              <Mapping SourceColumn="TenTruong" DataSetColumn="TenTruong" />
              <Mapping SourceColumn="TenTiengAnh" DataSetColumn="TenTiengAnh" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByCrewID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCrewID" GeneratorSourceName="FillByCrewID" GetMethodModifier="Public" GetMethodName="GetDataByCrewID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCrewID" UserSourceName="FillByCrewID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        TOP (1) tblEducation.nEducationId, tblEducation.cCrewID, tblEducation.nCource, tblEducation.cFinishYear, tblEducation.dPeriod, tblCourse.cCourseName, 
                         tblSchoolName.TenTruong, tblSchoolName.TenTiengAnh
FROM            tblEducation INNER JOIN
                         tblSchoolName ON tblEducation.cSchoolName = tblSchoolName.id INNER JOIN
                         tblCourse ON tblEducation.nCource = tblCourse.nCourse
WHERE        (tblEducation.cCrewID = @crewId)
ORDER BY tblEducation.nEducationId DESC</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="crewId" ColumnName="cCrewID" DataSourceName="CrewManagment.dbo.tblEducation" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@crewId" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="cCrewID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblImmigrationCrewTableAdapter" GeneratorDataComponentClassName="tblImmigrationCrewTableAdapter" Name="tblImmigrationCrew" UserDataComponentName="tblImmigrationCrewTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblImmigrationCrew.nImmigrationCrewId, tblImmigrationCrew.nImmigrationId, tblImmigrationCrew.nCrewId, tblImmigrationCrew.cIssuedBy, 
                         tblImmigrationCrew.cNumber, tblImmigrationCrew.dDateOfIssued, tblImmigrationCrew.dDateOfExpiry, tblImmigrationDoc.cDocName
FROM            tblImmigrationCrew INNER JOIN
                         tblImmigrationDoc ON tblImmigrationCrew.nImmigrationId = tblImmigrationDoc.nImmigrationId</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nImmigrationCrewId" DataSetColumn="nImmigrationCrewId" />
              <Mapping SourceColumn="nImmigrationId" DataSetColumn="nImmigrationId" />
              <Mapping SourceColumn="nCrewId" DataSetColumn="nCrewId" />
              <Mapping SourceColumn="cIssuedBy" DataSetColumn="cIssuedBy" />
              <Mapping SourceColumn="cNumber" DataSetColumn="cNumber" />
              <Mapping SourceColumn="dDateOfIssued" DataSetColumn="dDateOfIssued" />
              <Mapping SourceColumn="dDateOfExpiry" DataSetColumn="dDateOfExpiry" />
              <Mapping SourceColumn="cDocName" DataSetColumn="cDocName" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByCrewID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCrewID" GeneratorSourceName="FillByCrewID" GetMethodModifier="Public" GetMethodName="GetDataByCrewID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCrewID" UserSourceName="FillByCrewID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblImmigrationCrew.nImmigrationCrewId, tblImmigrationCrew.nImmigrationId, tblImmigrationCrew.nCrewId, tblImmigrationCrew.cIssuedBy, 
                         tblImmigrationCrew.cNumber, tblImmigrationCrew.dDateOfIssued, tblImmigrationCrew.dDateOfExpiry, 
                         tblImmigrationDoc.cDocName
FROM            tblImmigrationCrew INNER JOIN
                         tblImmigrationDoc ON tblImmigrationCrew.nImmigrationId = tblImmigrationDoc.nImmigrationId
WHERE        (tblImmigrationCrew.nCrewId = @crewID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="crewID" ColumnName="nCrewId" DataSourceName="CrewManagment.dbo.tblImmigrationCrew" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@crewID" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="nCrewId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadCrewTypeSummary" GeneratorDataComponentClassName="tadCrewTypeSummary" Name="tblCrewTypeSummary" UserDataComponentName="tadCrewTypeSummary">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrewType.cTypeName, tblAssignment.nVesselId, tblRank.cRankName, tblAssignment.cStatus, tblRank.iRankType
FROM            tblRank INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id INNER JOIN
                         tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId ON tblRank.nRankId = tblCrew.nRankID
WHERE        (tblAssignment.cStatus = N'On Board') AND (tblAssignment.isActive = 1)</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cTypeName" DataSetColumn="cTypeName" />
              <Mapping SourceColumn="nVesselId" DataSetColumn="nVesselId" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="iRankType" DataSetColumn="iRankType" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadVacation" GeneratorDataComponentClassName="tadVacation" Name="tblVacation" UserDataComponentName="tadVacation">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.dLeave, tblAssignment.cStatus, tblCrewType.cTypeName, 
                         tblRank.nRankLevel, tblCrew.nRankID, tblRank.iRankType, tblCrewType.Department
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id
WHERE        (tblAssignment.cStatus = N'On Vacation') AND (tblAssignment.isActive = 1)
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
              <Mapping SourceColumn="cTypeName" DataSetColumn="cTypeName" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="dLeave" DataSetColumn="dLeave" />
              <Mapping SourceColumn="nRankID" DataSetColumn="nRankID" />
              <Mapping SourceColumn="iRankType" DataSetColumn="iRankType" />
              <Mapping SourceColumn="Department" DataSetColumn="Department" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByGreater" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByGreater" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillByGreater">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.dLeave, tblAssignment.cStatus, tblCrewType.cTypeName, 
                         tblRank.nRankLevel, tblCrew.nRankID, tblRank.iRankType, tblCrewType.Department
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id
WHERE        (tblAssignment.cStatus = N'On Vacation') AND (tblAssignment.isActive = 1) AND (tblCrew.nRankID &gt; @id)
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="nRankID" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nRankID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByLessOrEqual" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByLessOrEqual" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillByLessOrEqual">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.dLeave, tblAssignment.cStatus, tblCrewType.cTypeName, 
                         tblRank.nRankLevel, tblCrew.nRankID, tblRank.iRankType, tblCrewType.Department
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id
WHERE        (tblAssignment.cStatus = N'On Vacation') AND (tblAssignment.isActive = 1) AND (tblCrew.nRankID &lt;= @id)
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="nRankID" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nRankID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByMiddle" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByMiddle" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="FillByMiddle">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.dLeave, tblAssignment.cStatus, tblCrewType.cTypeName, 
                         tblRank.nRankLevel, tblCrew.nRankID, tblRank.iRankType, tblCrewType.Department
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id
WHERE        (tblAssignment.cStatus = N'On Vacation') AND (tblAssignment.isActive = 1) AND (tblCrew.nRankID &gt; @id1) AND (tblCrew.nRankID &lt;= @id2)
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id1" ColumnName="nRankID" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id1" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nRankID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="id2" ColumnName="nRankID" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id2" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nRankID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByRankID" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByRankID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="FillByRankID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblAssignment.dLeave, tblAssignment.cStatus, tblCrewType.cTypeName, 
                         tblRank.nRankLevel, tblCrew.nRankID, tblRank.iRankType, tblCrewType.Department
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id
WHERE        (tblAssignment.cStatus = N'On Vacation') AND (tblAssignment.isActive = 1) and  tblCrew.nRankID=@rankID
ORDER BY tblAssignment.dLeave</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="rankID" ColumnName="nRankID" DataSourceName="CrewManagment.dbo.tblCrew" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@rankID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nRankID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadDepartment" GeneratorDataComponentClassName="tadDepartment" Name="vacationDepartment" UserDataComponentName="tadDepartment">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblCrewType" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DISTINCT tblCrewType.Department, tblCrewType.sort
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id
WHERE        (tblAssignment.cStatus = N'On Vacation') AND (tblAssignment.isActive = 1)
ORDER BY tblCrewType.sort</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Department" DataSetColumn="Department" />
              <Mapping SourceColumn="sort" DataSetColumn="sort" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblExprienceTableAdapter" GeneratorDataComponentClassName="tblExprienceTableAdapter" Name="tblExprience" UserDataComponentName="tblExprienceTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblExprience.nExprienceId, tblExprience.nCrewId, tblExprience.nRankId, tblExprience.nVesselId, tblExprience.nEmbarkedPlace, tblExprience.nDisembarkedPlace, 
                         tblExprience.dEmbarkedDate, tblExprience.dDisembarkedDate, tblExprience.fDuration, tblEngineMaker.cMakerName, tblEngineType.cTypeName, 
                         tblVessel.nEngineType, tblVessel.nEngineMaker, tblVessel.fHorsePower, tblVessel.cVesselName, tblVessel.cShortName, tblVessel.cVesselManaged, 
                         tblVessel.nFlagId, tblVessel.nVesselTypeId, tblVessel.cTradeArea, tblVessel.fGRT, tblVessel.cImoNumber, tblVessel.cPortOfRegistry, tblVessel.dYearBuilt, 
                         tblFlag.cFlagCountry, tblVesselType.cVesselType, tblRank.cRankName, tblRank.nRankLevel, tblRank.iRankType
FROM            tblExprience INNER JOIN
                         tblRank ON tblExprience.nRankId = tblRank.nRankId INNER JOIN
                         tblVessel ON tblExprience.nVesselId = tblVessel.nVesselId INNER JOIN
                         tblEngineType ON tblVessel.nEngineType = tblEngineType.nEngineType INNER JOIN
                         tblEngineMaker ON tblVessel.nEngineMaker = tblEngineMaker.nEngineMaker INNER JOIN
                         tblVesselType ON tblVessel.nVesselTypeId = tblVesselType.nVesselTypeId INNER JOIN
                         tblFlag ON tblVessel.nFlagId = tblFlag.nFlagId
WHERE        (tblExprience.nCrewId = @crewID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="crewID" ColumnName="nCrewId" DataSourceName="CrewManagment.dbo.tblExprience" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@crewID" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="nCrewId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nExprienceId" DataSetColumn="nExprienceId" />
              <Mapping SourceColumn="nCrewId" DataSetColumn="nCrewId" />
              <Mapping SourceColumn="nRankId" DataSetColumn="nRankId" />
              <Mapping SourceColumn="nVesselId" DataSetColumn="nVesselId" />
              <Mapping SourceColumn="nEmbarkedPlace" DataSetColumn="nEmbarkedPlace" />
              <Mapping SourceColumn="nDisembarkedPlace" DataSetColumn="nDisembarkedPlace" />
              <Mapping SourceColumn="dEmbarkedDate" DataSetColumn="dEmbarkedDate" />
              <Mapping SourceColumn="dDisembarkedDate" DataSetColumn="dDisembarkedDate" />
              <Mapping SourceColumn="fDuration" DataSetColumn="fDuration" />
              <Mapping SourceColumn="cMakerName" DataSetColumn="cMakerName" />
              <Mapping SourceColumn="cTypeName" DataSetColumn="cTypeName" />
              <Mapping SourceColumn="nEngineType" DataSetColumn="nEngineType" />
              <Mapping SourceColumn="nEngineMaker" DataSetColumn="nEngineMaker" />
              <Mapping SourceColumn="fHorsePower" DataSetColumn="fHorsePower" />
              <Mapping SourceColumn="cVesselName" DataSetColumn="cVesselName" />
              <Mapping SourceColumn="cShortName" DataSetColumn="cShortName" />
              <Mapping SourceColumn="cVesselManaged" DataSetColumn="cVesselManaged" />
              <Mapping SourceColumn="nFlagId" DataSetColumn="nFlagId" />
              <Mapping SourceColumn="nVesselTypeId" DataSetColumn="nVesselTypeId" />
              <Mapping SourceColumn="cTradeArea" DataSetColumn="cTradeArea" />
              <Mapping SourceColumn="fGRT" DataSetColumn="fGRT" />
              <Mapping SourceColumn="cImoNumber" DataSetColumn="cImoNumber" />
              <Mapping SourceColumn="cPortOfRegistry" DataSetColumn="cPortOfRegistry" />
              <Mapping SourceColumn="dYearBuilt" DataSetColumn="dYearBuilt" />
              <Mapping SourceColumn="cFlagCountry" DataSetColumn="cFlagCountry" />
              <Mapping SourceColumn="cVesselType" DataSetColumn="cVesselType" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
              <Mapping SourceColumn="iRankType" DataSetColumn="iRankType" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadDulieuKeToan" GeneratorDataComponentClassName="tadDulieuKeToan" Name="tblDulieuKeToan" UserDataComponentName="tadDulieuKeToan">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblAccountCrew.[Số BHXH], tblAccountCrew.[Mã số thuế], tblAccountCrew.[Số TK Ngân hàng], tblAccountCrew.[Ngân hàng], tblCrew.cFamilyName, tblCrew.cMiddleName, 
                         tblCrew.cFirstName, tblRank.cRankName, tblCrewType.sort, tblRank.nRankLevel, tblCrew.cHomeNo, tblCrew.cHandNo, tblCrew.PhuongXaID, tblCrew.QuanHuyenID, 
                         tblCrew.TinhThanhID, tblCrew.cAddress, tblAssignment.cStatus, tblQuanHuyen.TenQuanHuyen, tblPhuongXa.TenPhuongXa, tblTinhThanh.TenTinhThanh, 
                         tblHDLD.[Số HĐLĐ], tblHDLD.[Ngày ký], tblHDLD.[Thời hạn], tblHDLD.[Ngày hết hạn], tblHDLD.LoaiHDLD, tblLoaiHD.[Tên loại hợp đồng], COUNT(tblQuanHe.CrewID) 
                         AS soluong, tblCrew.nCrewId
FROM            tblQuanHe RIGHT OUTER JOIN
                         tblAccountCrew INNER JOIN
                         tblCrew ON tblAccountCrew.CrewID = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblCrewType ON tblRank.iRankType = tblCrewType.id LEFT OUTER JOIN
                         tblAssignment ON tblCrew.nCrewId = tblAssignment.nCrewid ON tblQuanHe.CrewID = tblCrew.nCrewId LEFT OUTER JOIN
                         tblLoaiHD INNER JOIN
                         tblHDLD ON tblLoaiHD.id = tblHDLD.LoaiHDLD ON tblCrew.nCrewId = tblHDLD.CrewID LEFT OUTER JOIN
                         tblTinhThanh ON tblCrew.TinhThanhID = tblTinhThanh.TinhThanhID LEFT OUTER JOIN
                         tblQuanHuyen ON tblCrew.QuanHuyenID = tblQuanHuyen.QuanHuyenID LEFT OUTER JOIN
                         tblPhuongXa ON tblCrew.PhuongXaID = tblPhuongXa.PhuongXaID
WHERE        (tblAssignment.isActive = 1) AND (tblAssignment.cStatus = 'On Board' OR
                         tblAssignment.cStatus = 'On Vacation' OR
                         tblAssignment.cStatus = 'New Crew')
GROUP BY tblQuanHe.CrewID, tblAccountCrew.[Số BHXH], tblAccountCrew.[Mã số thuế], tblAccountCrew.[Số TK Ngân hàng], tblAccountCrew.[Ngân hàng], tblCrew.cFamilyName, 
                         tblCrew.cMiddleName, tblCrew.cFirstName, tblRank.cRankName, tblCrewType.sort, tblRank.nRankLevel, tblCrew.cHomeNo, tblCrew.cHandNo, tblCrew.PhuongXaID, 
                         tblCrew.QuanHuyenID, tblCrew.TinhThanhID, tblCrew.cAddress, tblAssignment.cStatus, tblQuanHuyen.TenQuanHuyen, tblPhuongXa.TenPhuongXa, 
                         tblTinhThanh.TenTinhThanh, tblHDLD.[Số HĐLĐ], tblHDLD.[Ngày ký], tblHDLD.[Thời hạn], tblHDLD.[Ngày hết hạn], tblHDLD.LoaiHDLD, tblLoaiHD.[Tên loại hợp đồng], 
                         tblCrew.nCrewId
ORDER BY tblRank.nRankLevel</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Số BHXH" DataSetColumn="Số BHXH" />
              <Mapping SourceColumn="Mã số thuế" DataSetColumn="Mã số thuế" />
              <Mapping SourceColumn="Số TK Ngân hàng" DataSetColumn="Số TK Ngân hàng" />
              <Mapping SourceColumn="Ngân hàng" DataSetColumn="Ngân hàng" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="sort" DataSetColumn="sort" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
              <Mapping SourceColumn="cHomeNo" DataSetColumn="cHomeNo" />
              <Mapping SourceColumn="cHandNo" DataSetColumn="cHandNo" />
              <Mapping SourceColumn="PhuongXaID" DataSetColumn="PhuongXaID" />
              <Mapping SourceColumn="QuanHuyenID" DataSetColumn="QuanHuyenID" />
              <Mapping SourceColumn="TinhThanhID" DataSetColumn="TinhThanhID" />
              <Mapping SourceColumn="cAddress" DataSetColumn="cAddress" />
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="TenQuanHuyen" DataSetColumn="TenQuanHuyen" />
              <Mapping SourceColumn="TenPhuongXa" DataSetColumn="TenPhuongXa" />
              <Mapping SourceColumn="TenTinhThanh" DataSetColumn="TenTinhThanh" />
              <Mapping SourceColumn="Số HĐLĐ" DataSetColumn="Số HĐLĐ" />
              <Mapping SourceColumn="Ngày ký" DataSetColumn="Ngày ký" />
              <Mapping SourceColumn="Thời hạn" DataSetColumn="Thời hạn" />
              <Mapping SourceColumn="Ngày hết hạn" DataSetColumn="Ngày hết hạn" />
              <Mapping SourceColumn="LoaiHDLD" DataSetColumn="LoaiHDLD" />
              <Mapping SourceColumn="Tên loại hợp đồng" DataSetColumn="Tên loại hợp đồng" />
              <Mapping SourceColumn="nCrewId" DataSetColumn="nCrewId" />
              <Mapping SourceColumn="soluong" DataSetColumn="soluong" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadQuanHe" GeneratorDataComponentClassName="tadQuanHe" Name="tblQuanHe" UserDataComponentName="tadQuanHe">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        COUNT(id) AS soluong
FROM            tblQuanHe
WHERE        (CrewID = @id)
GROUP BY CrewID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="CrewID" DataSourceName="CrewManagment.dbo.tblQuanHe" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="CrewID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="soluong" DataSetColumn="soluong" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblShortPlanTableAdapter" GeneratorDataComponentClassName="tblShortPlanTableAdapter" Name="tblShortPlan" UserDataComponentName="tblShortPlanTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblShortPlan" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, PlanID, VesselID, nCrewID, dEmbarkedDate, DurationOnboard, nCrewIDNext, TGHopDong, TGDuKienLenTau, TGDuKienRoiTau, nGhiChu, nContract, isDone, 
                         NgayDuKienThayTV, NgayTTLenTau, NgayTTXuongTau
FROM            tblShortPlan
WHERE        (VesselID = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="VesselID" DataSourceName="CrewManagment.dbo.tblShortPlan" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="VesselID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PlanID" DataSetColumn="PlanID" />
              <Mapping SourceColumn="VesselID" DataSetColumn="VesselID" />
              <Mapping SourceColumn="nCrewID" DataSetColumn="nCrewID" />
              <Mapping SourceColumn="dEmbarkedDate" DataSetColumn="dEmbarkedDate" />
              <Mapping SourceColumn="DurationOnboard" DataSetColumn="DurationOnboard" />
              <Mapping SourceColumn="nCrewIDNext" DataSetColumn="nCrewIDNext" />
              <Mapping SourceColumn="TGHopDong" DataSetColumn="TGHopDong" />
              <Mapping SourceColumn="TGDuKienLenTau" DataSetColumn="TGDuKienLenTau" />
              <Mapping SourceColumn="TGDuKienRoiTau" DataSetColumn="TGDuKienRoiTau" />
              <Mapping SourceColumn="nGhiChu" DataSetColumn="nGhiChu" />
              <Mapping SourceColumn="nContract" DataSetColumn="nContract" />
              <Mapping SourceColumn="isDone" DataSetColumn="isDone" />
              <Mapping SourceColumn="NgayDuKienThayTV" DataSetColumn="NgayDuKienThayTV" />
              <Mapping SourceColumn="NgayTTLenTau" DataSetColumn="NgayTTLenTau" />
              <Mapping SourceColumn="NgayTTXuongTau" DataSetColumn="NgayTTXuongTau" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblTrainingCrewCourseTableAdapter" GeneratorDataComponentClassName="tblTrainingCrewCourseTableAdapter" Name="tblTrainingCrewCourse" UserDataComponentName="tblTrainingCrewCourseTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        t1.nCrewId, r2.cRankName, c.cFamilyName, c.cMiddleName, c.cFirstName, t1.dNgayVe, t1.nDuKienThoiGianNghi, t1.dDuKienThoiGianLenTau, r2.nRankLevel
FROM            tblTrainingCrews AS t1 INNER JOIN
                         tblCrew AS c ON t1.nCrewId = c.nCrewId INNER JOIN
                         tblRank AS r2 ON c.nRankID = r2.nRankId INNER JOIN
                         tblTraningPlan AS t3 ON t1.nTrainingPlanId = t3.nTrainingPlanId
WHERE        (t1.cStatus = 'On Vacation') AND (t3.dCreateDate = @dCreateDate) AND (t1.nTrainingCourse = @nTrainingCourse)
ORDER BY r2.nRankLevel</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="dCreateDate" ColumnName="dCreateDate" DataSourceName="CrewManagment.dbo.tblTraningPlan" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dCreateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="dCreateDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="nTrainingCourse" ColumnName="nTrainingCourse" DataSourceName="CrewManagment.dbo.tblTrainingCrews" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@nTrainingCourse" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nTrainingCourse" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nCrewId" DataSetColumn="nCrewId" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="dNgayVe" DataSetColumn="dNgayVe" />
              <Mapping SourceColumn="nDuKienThoiGianNghi" DataSetColumn="nDuKienThoiGianNghi" />
              <Mapping SourceColumn="dDuKienThoiGianLenTau" DataSetColumn="dDuKienThoiGianLenTau" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblToTrinhTableAdapter" GeneratorDataComponentClassName="tblToTrinhTableAdapter" Name="tblToTrinh" UserDataComponentName="tblToTrinhTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblShortPlan.ID, tblShortPlan.PlanID, tblShortPlan.VesselID, tblShortPlan.nCrewID, tblShortPlan.dEmbarkedDate, tblShortPlan.DurationOnboard, 
                         tblShortPlan.nCrewIDNext, tblShortPlan.TGHopDong, tblShortPlan.TGDuKienLenTau, tblShortPlan.TGDuKienRoiTau, tblShortPlan.nGhiChu, tblShortPlan.nContract, 
                         tblShortPlan.isDone, tblShortPlan.NgayDuKienThayTV, tblShortPlan.NgayTTLenTau, tblShortPlan.NgayTTXuongTau, tblShortPlan.NoiLen, tblShortPlan.NoiXuong, 
                         tblRank.cRankName, tblShortPlan.NgayLenTau
FROM            tblShortPlan LEFT OUTER JOIN
                         tblCrew INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId ON tblShortPlan.nCrewID = tblCrew.nCrewId
WHERE        (tblShortPlan.PlanID = @planid) AND (tblShortPlan.isDone = 0) AND (NOT (tblShortPlan.nCrewID IS NULL)) AND (NOT (tblShortPlan.NgayDuKienThayTV IS NULL)) OR
                         (tblShortPlan.PlanID = @planid) AND (tblShortPlan.isDone = 0) AND (tblShortPlan.nCrewID IS NULL) AND (NOT (tblShortPlan.NgayDuKienThayTV IS NULL)) AND 
                         (NOT (tblShortPlan.nCrewIDNext IS NULL))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="planid" ColumnName="PlanID" DataSourceName="CrewManagment.dbo.tblShortPlan" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@planid" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PlanID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PlanID" DataSetColumn="PlanID" />
              <Mapping SourceColumn="VesselID" DataSetColumn="VesselID" />
              <Mapping SourceColumn="nCrewID" DataSetColumn="nCrewID" />
              <Mapping SourceColumn="dEmbarkedDate" DataSetColumn="dEmbarkedDate" />
              <Mapping SourceColumn="DurationOnboard" DataSetColumn="DurationOnboard" />
              <Mapping SourceColumn="nCrewIDNext" DataSetColumn="nCrewIDNext" />
              <Mapping SourceColumn="TGHopDong" DataSetColumn="TGHopDong" />
              <Mapping SourceColumn="TGDuKienLenTau" DataSetColumn="TGDuKienLenTau" />
              <Mapping SourceColumn="TGDuKienRoiTau" DataSetColumn="TGDuKienRoiTau" />
              <Mapping SourceColumn="nGhiChu" DataSetColumn="nGhiChu" />
              <Mapping SourceColumn="nContract" DataSetColumn="nContract" />
              <Mapping SourceColumn="isDone" DataSetColumn="isDone" />
              <Mapping SourceColumn="NgayDuKienThayTV" DataSetColumn="NgayDuKienThayTV" />
              <Mapping SourceColumn="NgayTTLenTau" DataSetColumn="NgayTTLenTau" />
              <Mapping SourceColumn="NgayTTXuongTau" DataSetColumn="NgayTTXuongTau" />
              <Mapping SourceColumn="NoiLen" DataSetColumn="NoiLen" />
              <Mapping SourceColumn="NoiXuong" DataSetColumn="NoiXuong" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="NgayLenTau" DataSetColumn="NgayLenTau" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblKeHoachTableAdapter" GeneratorDataComponentClassName="tblKeHoachTableAdapter" Name="tblKeHoach" UserDataComponentName="tblKeHoachTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblKeHoach" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [tblKeHoach] WHERE (([Planid] = @Original_Planid) AND ((@IsNull_Tên_kế_hoạch = 1 AND [Tên kế hoạch] IS NULL) OR ([Tên kế hoạch] = @Original_Tên_kế_hoạch)) AND ((@IsNull_Người_lập_kế_hoạch = 1 AND [Người lập kế hoạch] IS NULL) OR ([Người lập kế hoạch] = @Original_Người_lập_kế_hoạch)) AND ((@IsNull_Ngày_lập_kế_hoạch = 1 AND [Ngày lập kế hoạch] IS NULL) OR ([Ngày lập kế hoạch] = @Original_Ngày_lập_kế_hoạch)) AND ((@IsNull_Ngày_chỉnh_sửa = 1 AND [Ngày chỉnh sửa] IS NULL) OR ([Ngày chỉnh sửa] = @Original_Ngày_chỉnh_sửa)) AND ((@IsNull_isLongPlan = 1 AND [isLongPlan] IS NULL) OR ([isLongPlan] = @Original_isLongPlan)) AND ((@IsNull_Từ = 1 AND [Từ] IS NULL) OR ([Từ] = @Original_Từ)) AND ((@IsNull_Đến = 1 AND [Đến] IS NULL) OR ([Đến] = @Original_Đến)) AND ((@IsNull_Đã_duyệt = 1 AND [Đã duyệt] IS NULL) OR ([Đã duyệt] = @Original_Đã_duyệt)) AND ((@IsNull_IsDone = 1 AND [IsDone] IS NULL) OR ([IsDone] = @Original_IsDone)) AND ((@IsNull_NguoiChinhSua = 1 AND [NguoiChinhSua] IS NULL) OR ([NguoiChinhSua] = @Original_NguoiChinhSua)) AND ((@IsNull_NgayDuKienThucHien = 1 AND [NgayDuKienThucHien] IS NULL) OR ([NgayDuKienThucHien] = @Original_NgayDuKienThucHien)) AND ((@IsNull_CangDuKien = 1 AND [CangDuKien] IS NULL) OR ([CangDuKien] = @Original_CangDuKien)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Planid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Planid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Tên_kế_hoạch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Tên kế hoạch" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Tên_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tên kế hoạch" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Người_lập_kế_hoạch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Người lập kế hoạch" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Người_lập_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Người lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Ngày_lập_kế_hoạch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ngày lập kế hoạch" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Ngày_lập_kế_hoạch" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Ngày lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Ngày_chỉnh_sửa" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ngày chỉnh sửa" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Ngày_chỉnh_sửa" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Ngày chỉnh sửa" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_isLongPlan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="isLongPlan" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_isLongPlan" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isLongPlan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Từ" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Từ" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Từ" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Từ" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Đến" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Đến" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Đến" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Đến" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Đã_duyệt" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Đã duyệt" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Đã_duyệt" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Đã duyệt" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsDone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsDone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsDone" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsDone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NguoiChinhSua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NguoiChinhSua" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NguoiChinhSua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NguoiChinhSua" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NgayDuKienThucHien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NgayDuKienThucHien" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_NgayDuKienThucHien" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="NgayDuKienThucHien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CangDuKien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CangDuKien" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CangDuKien" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CangDuKien" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblKeHoach] ([Tên kế hoạch], [Người lập kế hoạch], [Ngày lập kế hoạch], [Ngày chỉnh sửa], [isLongPlan], [Mô tả], [Từ], [Đến], [Đã duyệt], [IsDone], [NguoiChinhSua], [NgayDuKienThucHien], [CangDuKien]) VALUES (@Tên_kế_hoạch, @Người_lập_kế_hoạch, @Ngày_lập_kế_hoạch, @Ngày_chỉnh_sửa, @isLongPlan, @Mô_tả, @Từ, @Đến, @Đã_duyệt, @IsDone, @NguoiChinhSua, @NgayDuKienThucHien, @CangDuKien);
SELECT Planid, [Tên kế hoạch], [Người lập kế hoạch], [Ngày lập kế hoạch], [Ngày chỉnh sửa], isLongPlan, [Mô tả], Từ, Đến, [Đã duyệt], IsDone, NguoiChinhSua, NgayDuKienThucHien, CangDuKien FROM tblKeHoach WHERE (Planid = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Tên_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tên kế hoạch" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Người_lập_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Người lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Ngày_lập_kế_hoạch" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Ngày lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Ngày_chỉnh_sửa" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Ngày chỉnh sửa" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isLongPlan" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isLongPlan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Mô_tả" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mô tả" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Từ" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Từ" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Đến" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Đến" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Đã_duyệt" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Đã duyệt" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsDone" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsDone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NguoiChinhSua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NguoiChinhSua" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@NgayDuKienThucHien" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="NgayDuKienThucHien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CangDuKien" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CangDuKien" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        Planid, [Tên kế hoạch], [Người lập kế hoạch], [Ngày lập kế hoạch], [Ngày chỉnh sửa], isLongPlan, [Mô tả], Từ, Đến, [Đã duyệt], IsDone, NguoiChinhSua, NgayDuKienThucHien, 
                         CangDuKien
FROM            tblKeHoach</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [tblKeHoach] SET [Tên kế hoạch] = @Tên_kế_hoạch, [Người lập kế hoạch] = @Người_lập_kế_hoạch, [Ngày lập kế hoạch] = @Ngày_lập_kế_hoạch, [Ngày chỉnh sửa] = @Ngày_chỉnh_sửa, [isLongPlan] = @isLongPlan, [Mô tả] = @Mô_tả, [Từ] = @Từ, [Đến] = @Đến, [Đã duyệt] = @Đã_duyệt, [IsDone] = @IsDone, [NguoiChinhSua] = @NguoiChinhSua, [NgayDuKienThucHien] = @NgayDuKienThucHien, [CangDuKien] = @CangDuKien WHERE (([Planid] = @Original_Planid) AND ((@IsNull_Tên_kế_hoạch = 1 AND [Tên kế hoạch] IS NULL) OR ([Tên kế hoạch] = @Original_Tên_kế_hoạch)) AND ((@IsNull_Người_lập_kế_hoạch = 1 AND [Người lập kế hoạch] IS NULL) OR ([Người lập kế hoạch] = @Original_Người_lập_kế_hoạch)) AND ((@IsNull_Ngày_lập_kế_hoạch = 1 AND [Ngày lập kế hoạch] IS NULL) OR ([Ngày lập kế hoạch] = @Original_Ngày_lập_kế_hoạch)) AND ((@IsNull_Ngày_chỉnh_sửa = 1 AND [Ngày chỉnh sửa] IS NULL) OR ([Ngày chỉnh sửa] = @Original_Ngày_chỉnh_sửa)) AND ((@IsNull_isLongPlan = 1 AND [isLongPlan] IS NULL) OR ([isLongPlan] = @Original_isLongPlan)) AND ((@IsNull_Từ = 1 AND [Từ] IS NULL) OR ([Từ] = @Original_Từ)) AND ((@IsNull_Đến = 1 AND [Đến] IS NULL) OR ([Đến] = @Original_Đến)) AND ((@IsNull_Đã_duyệt = 1 AND [Đã duyệt] IS NULL) OR ([Đã duyệt] = @Original_Đã_duyệt)) AND ((@IsNull_IsDone = 1 AND [IsDone] IS NULL) OR ([IsDone] = @Original_IsDone)) AND ((@IsNull_NguoiChinhSua = 1 AND [NguoiChinhSua] IS NULL) OR ([NguoiChinhSua] = @Original_NguoiChinhSua)) AND ((@IsNull_NgayDuKienThucHien = 1 AND [NgayDuKienThucHien] IS NULL) OR ([NgayDuKienThucHien] = @Original_NgayDuKienThucHien)) AND ((@IsNull_CangDuKien = 1 AND [CangDuKien] IS NULL) OR ([CangDuKien] = @Original_CangDuKien)));
SELECT Planid, [Tên kế hoạch], [Người lập kế hoạch], [Ngày lập kế hoạch], [Ngày chỉnh sửa], isLongPlan, [Mô tả], Từ, Đến, [Đã duyệt], IsDone, NguoiChinhSua, NgayDuKienThucHien, CangDuKien FROM tblKeHoach WHERE (Planid = @Planid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Tên_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tên kế hoạch" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Người_lập_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Người lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Ngày_lập_kế_hoạch" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Ngày lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Ngày_chỉnh_sửa" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Ngày chỉnh sửa" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isLongPlan" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isLongPlan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Mô_tả" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mô tả" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Từ" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Từ" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Đến" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Đến" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Đã_duyệt" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Đã duyệt" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsDone" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsDone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NguoiChinhSua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NguoiChinhSua" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@NgayDuKienThucHien" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="NgayDuKienThucHien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CangDuKien" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CangDuKien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Planid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Planid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Tên_kế_hoạch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Tên kế hoạch" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Tên_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tên kế hoạch" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Người_lập_kế_hoạch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Người lập kế hoạch" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Người_lập_kế_hoạch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Người lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Ngày_lập_kế_hoạch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ngày lập kế hoạch" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Ngày_lập_kế_hoạch" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Ngày lập kế hoạch" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Ngày_chỉnh_sửa" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ngày chỉnh sửa" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Ngày_chỉnh_sửa" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Ngày chỉnh sửa" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_isLongPlan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="isLongPlan" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_isLongPlan" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isLongPlan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Từ" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Từ" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Từ" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Từ" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Đến" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Đến" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Đến" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Đến" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Đã_duyệt" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Đã duyệt" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Đã_duyệt" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Đã duyệt" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsDone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsDone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsDone" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsDone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NguoiChinhSua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NguoiChinhSua" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NguoiChinhSua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NguoiChinhSua" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NgayDuKienThucHien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NgayDuKienThucHien" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_NgayDuKienThucHien" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="NgayDuKienThucHien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CangDuKien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CangDuKien" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CangDuKien" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CangDuKien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Planid" ColumnName="Planid" DataSourceName="CrewManagment.dbo.tblKeHoach" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Planid" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Planid" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Planid" DataSetColumn="Planid" />
              <Mapping SourceColumn="Tên kế hoạch" DataSetColumn="Tên kế hoạch" />
              <Mapping SourceColumn="Người lập kế hoạch" DataSetColumn="Người lập kế hoạch" />
              <Mapping SourceColumn="Ngày lập kế hoạch" DataSetColumn="Ngày lập kế hoạch" />
              <Mapping SourceColumn="Ngày chỉnh sửa" DataSetColumn="Ngày chỉnh sửa" />
              <Mapping SourceColumn="isLongPlan" DataSetColumn="isLongPlan" />
              <Mapping SourceColumn="Mô tả" DataSetColumn="Mô tả" />
              <Mapping SourceColumn="Từ" DataSetColumn="Từ" />
              <Mapping SourceColumn="Đến" DataSetColumn="Đến" />
              <Mapping SourceColumn="Đã duyệt" DataSetColumn="Đã duyệt" />
              <Mapping SourceColumn="isDone" DataSetColumn="isDone" />
              <Mapping SourceColumn="NguoiChinhSua" DataSetColumn="NguoiChinhSua" />
              <Mapping SourceColumn="NgayDuKienThucHien" DataSetColumn="NgayDuKienThucHien" />
              <Mapping SourceColumn="IsDone" DataSetColumn="IsDone" />
              <Mapping SourceColumn="CangDuKien" DataSetColumn="CangDuKien" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectName="CrewManagment.dbo.tblKeHoach" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CangDuKien, IsDone, [Mô tả], NgayDuKienThucHien, NguoiChinhSua, [Ngày chỉnh sửa], [Ngày lập kế hoạch], [Người lập kế hoạch], Planid, [Tên kế hoạch], Từ, isLongPlan, [Đã duyệt], Đến FROM tblKeHoach WHERE (Planid = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="Planid" DataSourceName="CrewManagment.dbo.tblKeHoach" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Planid" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblCountTrainingCrewCourseAdapter" GeneratorDataComponentClassName="tblCountTrainingCrewCourseAdapter" Name="tblCountTrainingCrewCourse" UserDataComponentName="tblCountTrainingCrewCourseAdapter">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        t1.nCrewId, t1.nCrewId AS nCrewId2, r.cRankName, c.cFamilyName, c.cMiddleName, c.cFirstName, t2.cCourseName
FROM            tblTrainingCrews AS t1 RIGHT OUTER JOIN
                         tblTrainingCourse AS t2 ON t1.nTrainingCourse = t2.nTrainingCourse LEFT OUTER JOIN
                         tblCrew AS c ON t1.nCrewId = c.nCrewId LEFT OUTER JOIN
                         tblRank AS r ON c.nRankID = r.nRankId INNER JOIN
                         tblTraningPlan AS p ON t1.nTrainingPlanId = p.nTrainingPlanId
WHERE        (p.dCreateDate = @dCreateDate)
UNION ALL
SELECT        NULL AS nCrewId, NULL AS nCrewId2, NULL AS cRankName, NULL AS cFamilyName, NULL AS cMiddleName, NULL AS cFirstName, cCourseName
FROM            tblTrainingCourse</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="dCreateDate" ColumnName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dCreateDate" Precision="0" Scale="0" Size="8" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="nCrewId" DataSetColumn="nCrewId" />
              <Mapping SourceColumn="nCrewId2" DataSetColumn="nCrewId2" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="cCourseName" DataSetColumn="cCourseName" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadtblGuiChuTau" GeneratorDataComponentClassName="tadtblGuiChuTau" Name="tblGuiChuTau" UserDataComponentName="tadtblGuiChuTau">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblShortPlan.ID, tblShortPlan.PlanID, tblShortPlan.VesselID, tblShortPlan.nCrewID, tblShortPlan.dEmbarkedDate, tblShortPlan.DurationOnboard, 
                         tblShortPlan.TGHopDong, tblShortPlan.TGDuKienLenTau, tblShortPlan.TGDuKienRoiTau, tblShortPlan.nGhiChu, tblShortPlan.nContract, tblShortPlan.isDone, 
                         tblShortPlan.NgayDuKienThayTV, tblShortPlan.NgayTTLenTau, tblShortPlan.NgayTTXuongTau, tblShortPlan.NoiLen, tblShortPlan.NoiXuong, tblRank.cRankName, 
                         tblCrew.dDateOfBirth, tblCrew.cPlaceOfBirth, tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblShortPlan.nCrewIDNext, 
                         tblAssignment.dLeave
FROM            tblAssignment INNER JOIN
                         tblShortPlan ON tblAssignment.nCrewid = tblShortPlan.nCrewIDNext LEFT OUTER JOIN
                         tblCrew INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId ON tblShortPlan.nCrewIDNext = tblCrew.nCrewId
WHERE        (tblShortPlan.PlanID = @planid) AND (tblShortPlan.isDone = 0) AND (NOT (tblShortPlan.NgayDuKienThayTV IS NULL)) AND (NOT (tblShortPlan.nCrewIDNext IS NULL))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="planid" ColumnName="PlanID" DataSourceName="CrewManagment.dbo.tblShortPlan" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@planid" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PlanID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PlanID" DataSetColumn="PlanID" />
              <Mapping SourceColumn="VesselID" DataSetColumn="VesselID" />
              <Mapping SourceColumn="nCrewID" DataSetColumn="nCrewID" />
              <Mapping SourceColumn="dEmbarkedDate" DataSetColumn="dEmbarkedDate" />
              <Mapping SourceColumn="DurationOnboard" DataSetColumn="DurationOnboard" />
              <Mapping SourceColumn="TGHopDong" DataSetColumn="TGHopDong" />
              <Mapping SourceColumn="TGDuKienLenTau" DataSetColumn="TGDuKienLenTau" />
              <Mapping SourceColumn="TGDuKienRoiTau" DataSetColumn="TGDuKienRoiTau" />
              <Mapping SourceColumn="nGhiChu" DataSetColumn="nGhiChu" />
              <Mapping SourceColumn="nContract" DataSetColumn="nContract" />
              <Mapping SourceColumn="isDone" DataSetColumn="isDone" />
              <Mapping SourceColumn="NgayDuKienThayTV" DataSetColumn="NgayDuKienThayTV" />
              <Mapping SourceColumn="NgayTTLenTau" DataSetColumn="NgayTTLenTau" />
              <Mapping SourceColumn="NgayTTXuongTau" DataSetColumn="NgayTTXuongTau" />
              <Mapping SourceColumn="NoiLen" DataSetColumn="NoiLen" />
              <Mapping SourceColumn="NoiXuong" DataSetColumn="NoiXuong" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="nCrewIDNext" DataSetColumn="nCrewIDNext" />
              <Mapping SourceColumn="dDateOfBirth" DataSetColumn="dDateOfBirth" />
              <Mapping SourceColumn="cPlaceOfBirth" DataSetColumn="cPlaceOfBirth" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="dLeave" DataSetColumn="dLeave" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadCrewImmigration" GeneratorDataComponentClassName="tadCrewImmigration" Name="CrewImmigration" UserDataComponentName="tadCrewImmigration">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblCrew.dDateOfBirth, tblImmigrationDoc.cDocName, tblCrew.nCrewId, tblRank.cRankName, 
                         tblImmigrationCrew.cNumber
FROM            tblRank INNER JOIN
                         tblCrew ON tblRank.nRankId = tblCrew.nRankID LEFT OUTER JOIN
                         tblImmigrationDoc INNER JOIN
                         tblImmigrationCrew ON tblImmigrationDoc.nImmigrationId = tblImmigrationCrew.nImmigrationId ON tblCrew.nCrewId = tblImmigrationCrew.nCrewId
WHERE        (tblImmigrationDoc.cDocName = 'passport') OR
                         (tblImmigrationDoc.cDocName = '')</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="dDateOfBirth" DataSetColumn="dDateOfBirth" />
              <Mapping SourceColumn="cDocName" DataSetColumn="cDocName" />
              <Mapping SourceColumn="nCrewId" DataSetColumn="nCrewId" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="cNumber" DataSetColumn="cNumber" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadTrainingPlanDetail" GeneratorDataComponentClassName="tadTrainingPlanDetail" Name="tblTrainingPlanDetail" UserDataComponentName="tadTrainingPlanDetail">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblRank.cRankName, tblCrew.cFamilyName, tblCrew.cMiddleName, tblCrew.cFirstName, tblAssignment.cStatus, tblRank.nRankLevel, tblAssignment.nRequest, 
                         tblAssignment.dLeave, tblAssignment.dSanSangLenTau, tblAssignment.dDuKienRoiTau, tblTrainingPlanDetail.id, tblTrainingPlanDetail.nTrainingPlanID, 
                         tblTrainingPlanDetail.isConfirm, tblTrainingPlanDetail.nCrewID, tblTrainingPlanDetail.isDelete
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId INNER JOIN
                         tblTrainingPlanDetail ON tblCrew.nCrewId = tblTrainingPlanDetail.nCrewID
WHERE        (tblAssignment.isActive = 1) AND (tblTrainingPlanDetail.nTrainingPlanID = @id) AND (tblTrainingPlanDetail.isDelete = 0)
ORDER BY tblTrainingPlanDetail.id</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="nTrainingPlanID" DataSourceName="CrewManagment.dbo.tblTrainingPlanDetail" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="nTrainingPlanID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
              <Mapping SourceColumn="nRequest" DataSetColumn="nRequest" />
              <Mapping SourceColumn="dLeave" DataSetColumn="dLeave" />
              <Mapping SourceColumn="dSanSangLenTau" DataSetColumn="dSanSangLenTau" />
              <Mapping SourceColumn="dDuKienRoiTau" DataSetColumn="dDuKienRoiTau" />
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="nTrainingPlanID" DataSetColumn="nTrainingPlanID" />
              <Mapping SourceColumn="isConfirm" DataSetColumn="isConfirm" />
              <Mapping SourceColumn="nCrewID" DataSetColumn="nCrewID" />
              <Mapping SourceColumn="isDelete" DataSetColumn="isDelete" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadNewCrew" GeneratorDataComponentClassName="tadNewCrew" Name="tblNewCrew" UserDataComponentName="tadNewCrew">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblAssignment.cStatus, tblAssignment.dKyHopDong, tblAssignment.isActive, tblCrew.cFirstName, tblCrew.cMiddleName, tblCrew.cFamilyName, tblRank.nRankLevel, 
                         tblRank.cRankName, tblRank.iRankType
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId
WHERE        (tblAssignment.isActive = 1) AND (tblAssignment.cStatus = 'New Crew')</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="dKyHopDong" DataSetColumn="dKyHopDong" />
              <Mapping SourceColumn="isActive" DataSetColumn="isActive" />
              <Mapping SourceColumn="cFirstName" DataSetColumn="cFirstName" />
              <Mapping SourceColumn="cMiddleName" DataSetColumn="cMiddleName" />
              <Mapping SourceColumn="cFamilyName" DataSetColumn="cFamilyName" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="iRankType" DataSetColumn="iRankType" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadSumary" GeneratorDataComponentClassName="tadSumary" Name="tblSumary" UserDataComponentName="tadSumary">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblRank.cRankName, tblAssignment.cStatus, tblVesselGroup.cGroupName, 1 AS colCount, tblRank.nRankLevel
FROM            tblVesselGroup INNER JOIN
                         tblVessel ON tblVesselGroup.nGroupId = tblVessel.nGroupId RIGHT OUTER JOIN
                         tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblRank ON tblCrew.nRankID = tblRank.nRankId ON tblVessel.nVesselId = tblAssignment.nVesselId
WHERE        (tblAssignment.isActive = 1) AND (tblAssignment.cStatus = N'On Board') OR
                         (tblAssignment.isActive = 1) AND (tblAssignment.cStatus = N'On Vacation') OR
                         (tblAssignment.isActive = 1) AND (tblAssignment.cStatus = N'New Crew')</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cRankName" DataSetColumn="cRankName" />
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="cGroupName" DataSetColumn="cGroupName" />
              <Mapping SourceColumn="colCount" DataSetColumn="colCount" />
              <Mapping SourceColumn="nRankLevel" DataSetColumn="nRankLevel" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tadVesselGroup" GeneratorDataComponentClassName="tadVesselGroup" Name="tblGroupVessel" UserDataComponentName="tadVesselGroup">
            <MainSource>
              <DbSource ConnectionRef="CrewManagmentConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        tblAssignment.cStatus, tblVesselGroup.cGroupName, tblVessel.cVesselName, 1 AS colCount
FROM            tblAssignment INNER JOIN
                         tblCrew ON tblAssignment.nCrewid = tblCrew.nCrewId INNER JOIN
                         tblVessel ON tblAssignment.nVesselId = tblVessel.nVesselId INNER JOIN
                         tblVesselGroup ON tblVessel.nGroupId = tblVesselGroup.nGroupId
WHERE        (tblAssignment.cStatus = N'On Board') AND (tblAssignment.isActive = 1)</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="cStatus" DataSetColumn="cStatus" />
              <Mapping SourceColumn="cGroupName" DataSetColumn="cGroupName" />
              <Mapping SourceColumn="cVesselName" DataSetColumn="cVesselName" />
              <Mapping SourceColumn="colCount" DataSetColumn="colCount" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsReport" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsReport" msprop:Generator_UserDSName="dsReport">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tblAssignment" msprop:Generator_TableClassName="tblAssignmentDataTable" msprop:Generator_TableVarName="tabletblAssignment" msprop:Generator_TablePropName="tblAssignment" msprop:Generator_RowDeletingName="tblAssignmentRowDeleting" msprop:Generator_UserTableName="tblAssignment" msprop:Generator_RowChangingName="tblAssignmentRowChanging" msprop:Generator_RowEvHandlerName="tblAssignmentRowChangeEventHandler" msprop:Generator_RowDeletedName="tblAssignmentRowDeleted" msprop:Generator_RowEvArgName="tblAssignmentRowChangeEvent" msprop:Generator_RowChangedName="tblAssignmentRowChanged" msprop:Generator_RowClassName="tblAssignmentRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nAssignmentId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnnAssignmentId" msprop:Generator_ColumnPropNameInRow="nAssignmentId" msprop:Generator_ColumnPropNameInTable="nAssignmentIdColumn" msprop:Generator_UserColumnName="nAssignmentId" type="xs:int" />
              <xs:element name="nCrewid" msprop:Generator_ColumnVarNameInTable="columnnCrewid" msprop:Generator_ColumnPropNameInRow="nCrewid" msprop:Generator_ColumnPropNameInTable="nCrewidColumn" msprop:Generator_UserColumnName="nCrewid" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nVesselId" msprop:Generator_ColumnVarNameInTable="columnnVesselId" msprop:Generator_ColumnPropNameInRow="nVesselId" msprop:Generator_ColumnPropNameInTable="nVesselIdColumn" msprop:Generator_UserColumnName="nVesselId" type="xs:int" minOccurs="0" />
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cDescription" msprop:Generator_ColumnVarNameInTable="columncDescription" msprop:Generator_ColumnPropNameInRow="cDescription" msprop:Generator_ColumnPropNameInTable="cDescriptionColumn" msprop:Generator_UserColumnName="cDescription" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dEmbarked" msprop:Generator_ColumnVarNameInTable="columndEmbarked" msprop:Generator_ColumnPropNameInRow="dEmbarked" msprop:Generator_ColumnPropNameInTable="dEmbarkedColumn" msprop:Generator_UserColumnName="dEmbarked" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nContract" msprop:Generator_ColumnVarNameInTable="columnnContract" msprop:Generator_ColumnPropNameInRow="nContract" msprop:Generator_ColumnPropNameInTable="nContractColumn" msprop:Generator_UserColumnName="nContract" type="xs:int" minOccurs="0" />
              <xs:element name="dLeave" msprop:Generator_ColumnVarNameInTable="columndLeave" msprop:Generator_ColumnPropNameInRow="dLeave" msprop:Generator_ColumnPropNameInTable="dLeaveColumn" msprop:Generator_UserColumnName="dLeave" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nRequest" msprop:Generator_ColumnVarNameInTable="columnnRequest" msprop:Generator_ColumnPropNameInRow="nRequest" msprop:Generator_ColumnPropNameInTable="nRequestColumn" msprop:Generator_UserColumnName="nRequest" type="xs:int" minOccurs="0" />
              <xs:element name="dDuKienRoiTau" msprop:Generator_ColumnVarNameInTable="columndDuKienRoiTau" msprop:Generator_ColumnPropNameInRow="dDuKienRoiTau" msprop:Generator_ColumnPropNameInTable="dDuKienRoiTauColumn" msprop:Generator_UserColumnName="dDuKienRoiTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dSanSangLenTau" msprop:Generator_ColumnVarNameInTable="columndSanSangLenTau" msprop:Generator_ColumnPropNameInRow="dSanSangLenTau" msprop:Generator_ColumnPropNameInTable="dSanSangLenTauColumn" msprop:Generator_UserColumnName="dSanSangLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dCatHopDong" msprop:Generator_ColumnVarNameInTable="columndCatHopDong" msprop:Generator_ColumnPropNameInRow="dCatHopDong" msprop:Generator_ColumnPropNameInTable="dCatHopDongColumn" msprop:Generator_UserColumnName="dCatHopDong" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dNghiHuu" msprop:Generator_ColumnVarNameInTable="columndNghiHuu" msprop:Generator_ColumnPropNameInRow="dNghiHuu" msprop:Generator_ColumnPropNameInTable="dNghiHuuColumn" msprop:Generator_UserColumnName="dNghiHuu" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dKyHopDong" msprop:Generator_ColumnVarNameInTable="columndKyHopDong" msprop:Generator_ColumnPropNameInRow="dKyHopDong" msprop:Generator_ColumnPropNameInTable="dKyHopDongColumn" msprop:Generator_UserColumnName="dKyHopDong" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dModified" msprop:Generator_ColumnVarNameInTable="columndModified" msprop:Generator_ColumnPropNameInRow="dModified" msprop:Generator_ColumnPropNameInTable="dModifiedColumn" msprop:Generator_UserColumnName="dModified" type="xs:dateTime" minOccurs="0" />
              <xs:element name="isActive" msprop:Generator_ColumnVarNameInTable="columnisActive" msprop:Generator_ColumnPropNameInRow="isActive" msprop:Generator_ColumnPropNameInTable="isActiveColumn" msprop:Generator_UserColumnName="isActive" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblCrew" msprop:Generator_TableClassName="tblCrewDataTable" msprop:Generator_TableVarName="tabletblCrew" msprop:Generator_TablePropName="tblCrew" msprop:Generator_RowDeletingName="tblCrewRowDeleting" msprop:Generator_UserTableName="tblCrew" msprop:Generator_RowChangingName="tblCrewRowChanging" msprop:Generator_RowEvHandlerName="tblCrewRowChangeEventHandler" msprop:Generator_RowDeletedName="tblCrewRowDeleted" msprop:Generator_RowEvArgName="tblCrewRowChangeEvent" msprop:Generator_RowChangedName="tblCrewRowChanged" msprop:Generator_RowClassName="tblCrewRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nCrewId" msprop:Generator_ColumnVarNameInTable="columnnCrewId" msprop:Generator_ColumnPropNameInRow="nCrewId" msprop:Generator_ColumnPropNameInTable="nCrewIdColumn" msprop:Generator_UserColumnName="nCrewId">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankID" msprop:Generator_ColumnVarNameInTable="columnnRankID" msprop:Generator_ColumnPropNameInRow="nRankID" msprop:Generator_ColumnPropNameInTable="nRankIDColumn" msprop:Generator_UserColumnName="nRankID" type="xs:int" minOccurs="0" />
              <xs:element name="iCrewType" msprop:Generator_ColumnVarNameInTable="columniCrewType" msprop:Generator_ColumnPropNameInRow="iCrewType" msprop:Generator_ColumnPropNameInTable="iCrewTypeColumn" msprop:Generator_UserColumnName="iCrewType" type="xs:int" minOccurs="0" />
              <xs:element name="bImage" msprop:Generator_ColumnVarNameInTable="columnbImage" msprop:Generator_ColumnPropNameInRow="bImage" msprop:Generator_ColumnPropNameInTable="bImageColumn" msprop:Generator_UserColumnName="bImage" type="xs:base64Binary" minOccurs="0" />
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cCMT" msprop:Generator_ColumnVarNameInTable="columncCMT" msprop:Generator_ColumnPropNameInRow="cCMT" msprop:Generator_ColumnPropNameInTable="cCMTColumn" msprop:Generator_UserColumnName="cCMT" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dNgayCap" msprop:Generator_ColumnVarNameInTable="columndNgayCap" msprop:Generator_ColumnPropNameInRow="dNgayCap" msprop:Generator_ColumnPropNameInTable="dNgayCapColumn" msprop:Generator_UserColumnName="dNgayCap" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nNoiCap" msprop:Generator_ColumnVarNameInTable="columnnNoiCap" msprop:Generator_ColumnPropNameInRow="nNoiCap" msprop:Generator_ColumnPropNameInTable="nNoiCapColumn" msprop:Generator_UserColumnName="nNoiCap" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cAlias" msprop:Generator_ColumnVarNameInTable="columncAlias" msprop:Generator_ColumnPropNameInRow="cAlias" msprop:Generator_ColumnPropNameInTable="cAliasColumn" msprop:Generator_UserColumnName="cAlias" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dDateOfBirth" msprop:Generator_ColumnVarNameInTable="columndDateOfBirth" msprop:Generator_ColumnPropNameInRow="dDateOfBirth" msprop:Generator_ColumnPropNameInTable="dDateOfBirthColumn" msprop:Generator_UserColumnName="dDateOfBirth" type="xs:dateTime" minOccurs="0" />
              <xs:element name="cAddress" msprop:Generator_ColumnVarNameInTable="columncAddress" msprop:Generator_ColumnPropNameInRow="cAddress" msprop:Generator_ColumnPropNameInTable="cAddressColumn" msprop:Generator_UserColumnName="cAddress" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cPlaceOfBirth" msprop:Generator_ColumnVarNameInTable="columncPlaceOfBirth" msprop:Generator_ColumnPropNameInRow="cPlaceOfBirth" msprop:Generator_ColumnPropNameInTable="cPlaceOfBirthColumn" msprop:Generator_UserColumnName="cPlaceOfBirth" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cHomeNo" msprop:Generator_ColumnVarNameInTable="columncHomeNo" msprop:Generator_ColumnPropNameInRow="cHomeNo" msprop:Generator_ColumnPropNameInTable="cHomeNoColumn" msprop:Generator_UserColumnName="cHomeNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cHandNo" msprop:Generator_ColumnVarNameInTable="columncHandNo" msprop:Generator_ColumnPropNameInRow="cHandNo" msprop:Generator_ColumnPropNameInTable="cHandNoColumn" msprop:Generator_UserColumnName="cHandNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cEmail" msprop:Generator_ColumnVarNameInTable="columncEmail" msprop:Generator_ColumnPropNameInRow="cEmail" msprop:Generator_ColumnPropNameInTable="cEmailColumn" msprop:Generator_UserColumnName="cEmail" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cSex" msprop:Generator_ColumnVarNameInTable="columncSex" msprop:Generator_ColumnPropNameInRow="cSex" msprop:Generator_ColumnPropNameInTable="cSexColumn" msprop:Generator_UserColumnName="cSex" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMaritalStatus" msprop:Generator_ColumnVarNameInTable="columncMaritalStatus" msprop:Generator_ColumnPropNameInRow="cMaritalStatus" msprop:Generator_ColumnPropNameInTable="cMaritalStatusColumn" msprop:Generator_UserColumnName="cMaritalStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cNationality" msprop:Generator_ColumnVarNameInTable="columncNationality" msprop:Generator_ColumnPropNameInRow="cNationality" msprop:Generator_ColumnPropNameInTable="cNationalityColumn" msprop:Generator_UserColumnName="cNationality" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cContactPerson" msprop:Generator_ColumnVarNameInTable="columncContactPerson" msprop:Generator_ColumnPropNameInRow="cContactPerson" msprop:Generator_ColumnPropNameInTable="cContactPersonColumn" msprop:Generator_UserColumnName="cContactPerson" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cContactPersonAddress" msprop:Generator_ColumnVarNameInTable="columncContactPersonAddress" msprop:Generator_ColumnPropNameInRow="cContactPersonAddress" msprop:Generator_ColumnPropNameInTable="cContactPersonAddressColumn" msprop:Generator_UserColumnName="cContactPersonAddress" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cContactPersonNo" msprop:Generator_ColumnVarNameInTable="columncContactPersonNo" msprop:Generator_ColumnPropNameInRow="cContactPersonNo" msprop:Generator_ColumnPropNameInTable="cContactPersonNoColumn" msprop:Generator_UserColumnName="cContactPersonNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cContactRelation" msprop:Generator_ColumnVarNameInTable="columncContactRelation" msprop:Generator_ColumnPropNameInRow="cContactRelation" msprop:Generator_ColumnPropNameInTable="cContactRelationColumn" msprop:Generator_UserColumnName="cContactRelation" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cContactEmail" msprop:Generator_ColumnVarNameInTable="columncContactEmail" msprop:Generator_ColumnPropNameInRow="cContactEmail" msprop:Generator_ColumnPropNameInTable="cContactEmailColumn" msprop:Generator_UserColumnName="cContactEmail" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="fHeight" msprop:Generator_ColumnVarNameInTable="columnfHeight" msprop:Generator_ColumnPropNameInRow="fHeight" msprop:Generator_ColumnPropNameInTable="fHeightColumn" msprop:Generator_UserColumnName="fHeight" type="xs:double" minOccurs="0" />
              <xs:element name="fWeight" msprop:Generator_ColumnVarNameInTable="columnfWeight" msprop:Generator_ColumnPropNameInRow="fWeight" msprop:Generator_ColumnPropNameInTable="fWeightColumn" msprop:Generator_UserColumnName="fWeight" type="xs:double" minOccurs="0" />
              <xs:element name="cBloodGroup" msprop:Generator_ColumnVarNameInTable="columncBloodGroup" msprop:Generator_ColumnPropNameInRow="cBloodGroup" msprop:Generator_ColumnPropNameInTable="cBloodGroupColumn" msprop:Generator_UserColumnName="cBloodGroup" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="fShoeSizeVN" msprop:Generator_ColumnVarNameInTable="columnfShoeSizeVN" msprop:Generator_ColumnPropNameInRow="fShoeSizeVN" msprop:Generator_ColumnPropNameInTable="fShoeSizeVNColumn" msprop:Generator_UserColumnName="fShoeSizeVN" type="xs:double" minOccurs="0" />
              <xs:element name="fShoeSizeJP" msprop:Generator_ColumnVarNameInTable="columnfShoeSizeJP" msprop:Generator_ColumnPropNameInRow="fShoeSizeJP" msprop:Generator_ColumnPropNameInTable="fShoeSizeJPColumn" msprop:Generator_UserColumnName="fShoeSizeJP" type="xs:double" minOccurs="0" />
              <xs:element name="fOverallSizeVN" msprop:Generator_ColumnVarNameInTable="columnfOverallSizeVN" msprop:Generator_ColumnPropNameInRow="fOverallSizeVN" msprop:Generator_ColumnPropNameInTable="fOverallSizeVNColumn" msprop:Generator_UserColumnName="fOverallSizeVN" type="xs:double" minOccurs="0" />
              <xs:element name="cOverallSizeJP" msprop:Generator_ColumnVarNameInTable="columncOverallSizeJP" msprop:Generator_ColumnPropNameInRow="cOverallSizeJP" msprop:Generator_ColumnPropNameInTable="cOverallSizeJPColumn" msprop:Generator_UserColumnName="cOverallSizeJP" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="bDeleted" msprop:Generator_ColumnVarNameInTable="columnbDeleted" msprop:Generator_ColumnPropNameInRow="bDeleted" msprop:Generator_ColumnPropNameInTable="bDeletedColumn" msprop:Generator_UserColumnName="bDeleted" type="xs:boolean" minOccurs="0" />
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TinhThanhID" msprop:Generator_ColumnVarNameInTable="columnTinhThanhID" msprop:Generator_ColumnPropNameInRow="TinhThanhID" msprop:Generator_ColumnPropNameInTable="TinhThanhIDColumn" msprop:Generator_UserColumnName="TinhThanhID" type="xs:int" minOccurs="0" />
              <xs:element name="QuanHuyenID" msprop:Generator_ColumnVarNameInTable="columnQuanHuyenID" msprop:Generator_ColumnPropNameInRow="QuanHuyenID" msprop:Generator_ColumnPropNameInTable="QuanHuyenIDColumn" msprop:Generator_UserColumnName="QuanHuyenID" type="xs:int" minOccurs="0" />
              <xs:element name="PhuongXaID" msprop:Generator_ColumnVarNameInTable="columnPhuongXaID" msprop:Generator_ColumnPropNameInRow="PhuongXaID" msprop:Generator_ColumnPropNameInTable="PhuongXaIDColumn" msprop:Generator_UserColumnName="PhuongXaID" type="xs:int" minOccurs="0" />
              <xs:element name="ContactTinhThanh" msprop:Generator_ColumnVarNameInTable="columnContactTinhThanh" msprop:Generator_ColumnPropNameInRow="ContactTinhThanh" msprop:Generator_ColumnPropNameInTable="ContactTinhThanhColumn" msprop:Generator_UserColumnName="ContactTinhThanh" type="xs:int" minOccurs="0" />
              <xs:element name="ContactQuanHuyenId" msprop:Generator_ColumnVarNameInTable="columnContactQuanHuyenId" msprop:Generator_ColumnPropNameInRow="ContactQuanHuyenId" msprop:Generator_ColumnPropNameInTable="ContactQuanHuyenIdColumn" msprop:Generator_UserColumnName="ContactQuanHuyenId" type="xs:int" minOccurs="0" />
              <xs:element name="ContactPhuongXaID" msprop:Generator_ColumnVarNameInTable="columnContactPhuongXaID" msprop:Generator_ColumnPropNameInRow="ContactPhuongXaID" msprop:Generator_ColumnPropNameInTable="ContactPhuongXaIDColumn" msprop:Generator_UserColumnName="ContactPhuongXaID" type="xs:int" minOccurs="0" />
              <xs:element name="FullName" msdata:ReadOnly="true" msdata:Expression="cFamilyName + ' ' + cMiddleName + ' ' + cFirstName" msprop:Generator_ColumnVarNameInTable="columnFullName" msprop:Generator_ColumnPropNameInRow="FullName" msprop:Generator_ColumnPropNameInTable="FullNameColumn" msprop:Generator_UserColumnName="FullName" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblCrewType" msprop:Generator_TableClassName="tblCrewTypeDataTable" msprop:Generator_TableVarName="tabletblCrewType" msprop:Generator_TablePropName="tblCrewType" msprop:Generator_RowDeletingName="tblCrewTypeRowDeleting" msprop:Generator_UserTableName="tblCrewType" msprop:Generator_RowChangingName="tblCrewTypeRowChanging" msprop:Generator_RowEvHandlerName="tblCrewTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="tblCrewTypeRowDeleted" msprop:Generator_RowEvArgName="tblCrewTypeRowChangeEvent" msprop:Generator_RowChangedName="tblCrewTypeRowChanged" msprop:Generator_RowClassName="tblCrewTypeRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" type="xs:int" />
              <xs:element name="cTypeName" msprop:Generator_ColumnVarNameInTable="columncTypeName" msprop:Generator_ColumnPropNameInRow="cTypeName" msprop:Generator_ColumnPropNameInTable="cTypeNameColumn" msprop:Generator_UserColumnName="cTypeName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Prefix" msprop:Generator_ColumnVarNameInTable="columnPrefix" msprop:Generator_ColumnPropNameInRow="Prefix" msprop:Generator_ColumnPropNameInTable="PrefixColumn" msprop:Generator_UserColumnName="Prefix" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblRank" msprop:Generator_TableClassName="tblRankDataTable" msprop:Generator_TableVarName="tabletblRank" msprop:Generator_TablePropName="tblRank" msprop:Generator_RowDeletingName="tblRankRowDeleting" msprop:Generator_UserTableName="tblRank" msprop:Generator_RowChangingName="tblRankRowChanging" msprop:Generator_RowEvHandlerName="tblRankRowChangeEventHandler" msprop:Generator_RowDeletedName="tblRankRowDeleted" msprop:Generator_RowEvArgName="tblRankRowChangeEvent" msprop:Generator_RowChangedName="tblRankRowChanged" msprop:Generator_RowClassName="tblRankRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nRankId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnnRankId" msprop:Generator_ColumnPropNameInRow="nRankId" msprop:Generator_ColumnPropNameInTable="nRankIdColumn" msprop:Generator_UserColumnName="nRankId" type="xs:int" />
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
              <xs:element name="cRankDescription" msprop:Generator_ColumnVarNameInTable="columncRankDescription" msprop:Generator_ColumnPropNameInRow="cRankDescription" msprop:Generator_ColumnPropNameInTable="cRankDescriptionColumn" msprop:Generator_UserColumnName="cRankDescription" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="iRankType" msprop:Generator_ColumnVarNameInTable="columniRankType" msprop:Generator_ColumnPropNameInRow="iRankType" msprop:Generator_ColumnPropNameInTable="iRankTypeColumn" msprop:Generator_UserColumnName="iRankType" type="xs:int" minOccurs="0" />
              <xs:element name="BasicMonthlyWages" msprop:Generator_ColumnVarNameInTable="columnBasicMonthlyWages" msprop:Generator_ColumnPropNameInRow="BasicMonthlyWages" msprop:Generator_ColumnPropNameInTable="BasicMonthlyWagesColumn" msprop:Generator_UserColumnName="BasicMonthlyWages" type="xs:double" minOccurs="0" />
              <xs:element name="Overtime_x0020_A" msprop:Generator_ColumnVarNameInTable="columnOvertime_A" msprop:Generator_ColumnPropNameInRow="Overtime_A" msprop:Generator_ColumnPropNameInTable="Overtime_AColumn" msprop:Generator_UserColumnName="Overtime A" type="xs:double" minOccurs="0" />
              <xs:element name="Overtime_x0020_B" msprop:Generator_ColumnVarNameInTable="columnOvertime_B" msprop:Generator_ColumnPropNameInRow="Overtime_B" msprop:Generator_ColumnPropNameInTable="Overtime_BColumn" msprop:Generator_UserColumnName="Overtime B" type="xs:double" minOccurs="0" />
              <xs:element name="SubsisAllowence" msprop:Generator_ColumnVarNameInTable="columnSubsisAllowence" msprop:Generator_ColumnPropNameInRow="SubsisAllowence" msprop:Generator_ColumnPropNameInTable="SubsisAllowenceColumn" msprop:Generator_UserColumnName="SubsisAllowence" type="xs:double" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblOnBoarList" msprop:Generator_TableClassName="tblOnBoarListDataTable" msprop:Generator_TableVarName="tabletblOnBoarList" msprop:Generator_TablePropName="tblOnBoarList" msprop:Generator_RowDeletingName="tblOnBoarListRowDeleting" msprop:Generator_UserTableName="tblOnBoarList" msprop:Generator_RowChangingName="tblOnBoarListRowChanging" msprop:Generator_RowEvHandlerName="tblOnBoarListRowChangeEventHandler" msprop:Generator_RowDeletedName="tblOnBoarListRowDeleted" msprop:Generator_RowEvArgName="tblOnBoarListRowChangeEvent" msprop:Generator_RowChangedName="tblOnBoarListRowChanged" msprop:Generator_RowClassName="tblOnBoarListRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FullName" msdata:ReadOnly="true" msdata:Expression="cFamilyName + ' ' + cMiddleName + ' ' + cFirstName" msprop:Generator_ColumnVarNameInTable="columnFullName" msprop:Generator_ColumnPropNameInRow="FullName" msprop:Generator_ColumnPropNameInTable="FullNameColumn" msprop:Generator_UserColumnName="FullName" type="xs:string" minOccurs="0" />
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nVesselId" msprop:Generator_ColumnVarNameInTable="columnnVesselId" msprop:Generator_ColumnPropNameInRow="nVesselId" msprop:Generator_ColumnPropNameInTable="nVesselIdColumn" msprop:Generator_UserColumnName="nVesselId" type="xs:int" minOccurs="0" />
              <xs:element name="dEmbarked" msprop:Generator_ColumnVarNameInTable="columndEmbarked" msprop:Generator_ColumnPropNameInRow="dEmbarked" msprop:Generator_ColumnPropNameInTable="dEmbarkedColumn" msprop:Generator_UserColumnName="dEmbarked" type="xs:dateTime" minOccurs="0" />
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cVesselName" msprop:Generator_ColumnVarNameInTable="columncVesselName" msprop:Generator_ColumnPropNameInRow="cVesselName" msprop:Generator_ColumnPropNameInTable="cVesselNameColumn" msprop:Generator_UserColumnName="cVesselName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cTypeName" msprop:Generator_ColumnVarNameInTable="columncTypeName" msprop:Generator_ColumnPropNameInRow="cTypeName" msprop:Generator_ColumnPropNameInTable="cTypeNameColumn" msprop:Generator_UserColumnName="cTypeName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
              <xs:element name="nRankID" msprop:Generator_ColumnVarNameInTable="columnnRankID" msprop:Generator_ColumnPropNameInRow="nRankID" msprop:Generator_ColumnPropNameInTable="nRankIDColumn" msprop:Generator_UserColumnName="nRankID" type="xs:int" minOccurs="0" />
              <xs:element name="cGroupName" msprop:Generator_ColumnVarNameInTable="columncGroupName" msprop:Generator_ColumnPropNameInRow="cGroupName" msprop:Generator_ColumnPropNameInTable="cGroupNameColumn" msprop:Generator_UserColumnName="cGroupName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFlagCountry" msprop:Generator_ColumnVarNameInTable="columncFlagCountry" msprop:Generator_ColumnPropNameInRow="cFlagCountry" msprop:Generator_ColumnPropNameInTable="cFlagCountryColumn" msprop:Generator_UserColumnName="cFlagCountry" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblCertificateCrew" msprop:Generator_TableClassName="tblCertificateCrewDataTable" msprop:Generator_TableVarName="tabletblCertificateCrew" msprop:Generator_TablePropName="tblCertificateCrew" msprop:Generator_RowDeletingName="tblCertificateCrewRowDeleting" msprop:Generator_UserTableName="tblCertificateCrew" msprop:Generator_RowChangingName="tblCertificateCrewRowChanging" msprop:Generator_RowEvHandlerName="tblCertificateCrewRowChangeEventHandler" msprop:Generator_RowDeletedName="tblCertificateCrewRowDeleted" msprop:Generator_RowEvArgName="tblCertificateCrewRowChangeEvent" msprop:Generator_RowChangedName="tblCertificateCrewRowChanged" msprop:Generator_RowClassName="tblCertificateCrewRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nCertificateCrew" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnnCertificateCrew" msprop:Generator_ColumnPropNameInRow="nCertificateCrew" msprop:Generator_ColumnPropNameInTable="nCertificateCrewColumn" msprop:Generator_UserColumnName="nCertificateCrew" type="xs:int" />
              <xs:element name="nCertificationId" msprop:Generator_ColumnVarNameInTable="columnnCertificationId" msprop:Generator_ColumnPropNameInRow="nCertificationId" msprop:Generator_ColumnPropNameInTable="nCertificationIdColumn" msprop:Generator_UserColumnName="nCertificationId" type="xs:int" minOccurs="0" />
              <xs:element name="nCrewid" msprop:Generator_ColumnVarNameInTable="columnnCrewid" msprop:Generator_ColumnPropNameInRow="nCrewid" msprop:Generator_ColumnPropNameInTable="nCrewidColumn" msprop:Generator_UserColumnName="nCrewid" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cIssuedBy" msprop:Generator_ColumnVarNameInTable="columncIssuedBy" msprop:Generator_ColumnPropNameInRow="cIssuedBy" msprop:Generator_ColumnPropNameInTable="cIssuedByColumn" msprop:Generator_UserColumnName="cIssuedBy" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cNumber" msprop:Generator_ColumnVarNameInTable="columncNumber" msprop:Generator_ColumnPropNameInRow="cNumber" msprop:Generator_ColumnPropNameInTable="cNumberColumn" msprop:Generator_UserColumnName="cNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dDateOfIssued" msprop:Generator_ColumnVarNameInTable="columndDateOfIssued" msprop:Generator_ColumnPropNameInRow="dDateOfIssued" msprop:Generator_ColumnPropNameInTable="dDateOfIssuedColumn" msprop:Generator_UserColumnName="dDateOfIssued" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dDateOfExpire" msprop:Generator_ColumnVarNameInTable="columndDateOfExpire" msprop:Generator_ColumnPropNameInRow="dDateOfExpire" msprop:Generator_ColumnPropNameInTable="dDateOfExpireColumn" msprop:Generator_UserColumnName="dDateOfExpire" type="xs:dateTime" minOccurs="0" />
              <xs:element name="cCertificationName" msprop:Generator_ColumnVarNameInTable="columncCertificationName" msprop:Generator_ColumnPropNameInRow="cCertificationName" msprop:Generator_ColumnPropNameInTable="cCertificationNameColumn" msprop:Generator_UserColumnName="cCertificationName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblEducation" msprop:Generator_TableClassName="tblEducationDataTable" msprop:Generator_TableVarName="tabletblEducation" msprop:Generator_TablePropName="tblEducation" msprop:Generator_RowDeletingName="tblEducationRowDeleting" msprop:Generator_UserTableName="tblEducation" msprop:Generator_RowChangingName="tblEducationRowChanging" msprop:Generator_RowEvHandlerName="tblEducationRowChangeEventHandler" msprop:Generator_RowDeletedName="tblEducationRowDeleted" msprop:Generator_RowEvArgName="tblEducationRowChangeEvent" msprop:Generator_RowChangedName="tblEducationRowChanged" msprop:Generator_RowClassName="tblEducationRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nEducationId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnnEducationId" msprop:Generator_ColumnPropNameInRow="nEducationId" msprop:Generator_ColumnPropNameInTable="nEducationIdColumn" msprop:Generator_UserColumnName="nEducationId" type="xs:int" />
              <xs:element name="cCrewID" msprop:Generator_ColumnVarNameInTable="columncCrewID" msprop:Generator_ColumnPropNameInRow="cCrewID" msprop:Generator_ColumnPropNameInTable="cCrewIDColumn" msprop:Generator_UserColumnName="cCrewID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nCource" msprop:Generator_ColumnVarNameInTable="columnnCource" msprop:Generator_ColumnPropNameInRow="nCource" msprop:Generator_ColumnPropNameInTable="nCourceColumn" msprop:Generator_UserColumnName="nCource" type="xs:int" minOccurs="0" />
              <xs:element name="cFinishYear" msprop:Generator_ColumnVarNameInTable="columncFinishYear" msprop:Generator_ColumnPropNameInRow="cFinishYear" msprop:Generator_ColumnPropNameInTable="cFinishYearColumn" msprop:Generator_UserColumnName="cFinishYear" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dPeriod" msprop:Generator_ColumnVarNameInTable="columndPeriod" msprop:Generator_ColumnPropNameInRow="dPeriod" msprop:Generator_ColumnPropNameInTable="dPeriodColumn" msprop:Generator_UserColumnName="dPeriod" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cCourseName" msprop:Generator_ColumnVarNameInTable="columncCourseName" msprop:Generator_ColumnPropNameInRow="cCourseName" msprop:Generator_ColumnPropNameInTable="cCourseNameColumn" msprop:Generator_UserColumnName="cCourseName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenTruong" msprop:Generator_ColumnVarNameInTable="columnTenTruong" msprop:Generator_ColumnPropNameInRow="TenTruong" msprop:Generator_ColumnPropNameInTable="TenTruongColumn" msprop:Generator_UserColumnName="TenTruong" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenTiengAnh" msprop:Generator_ColumnVarNameInTable="columnTenTiengAnh" msprop:Generator_ColumnPropNameInRow="TenTiengAnh" msprop:Generator_ColumnPropNameInTable="TenTiengAnhColumn" msprop:Generator_UserColumnName="TenTiengAnh" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblImmigrationCrew" msprop:Generator_TableClassName="tblImmigrationCrewDataTable" msprop:Generator_TableVarName="tabletblImmigrationCrew" msprop:Generator_TablePropName="tblImmigrationCrew" msprop:Generator_RowDeletingName="tblImmigrationCrewRowDeleting" msprop:Generator_UserTableName="tblImmigrationCrew" msprop:Generator_RowChangingName="tblImmigrationCrewRowChanging" msprop:Generator_RowEvHandlerName="tblImmigrationCrewRowChangeEventHandler" msprop:Generator_RowDeletedName="tblImmigrationCrewRowDeleted" msprop:Generator_RowEvArgName="tblImmigrationCrewRowChangeEvent" msprop:Generator_RowChangedName="tblImmigrationCrewRowChanged" msprop:Generator_RowClassName="tblImmigrationCrewRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nImmigrationCrewId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnnImmigrationCrewId" msprop:Generator_ColumnPropNameInRow="nImmigrationCrewId" msprop:Generator_ColumnPropNameInTable="nImmigrationCrewIdColumn" msprop:Generator_UserColumnName="nImmigrationCrewId" type="xs:int" />
              <xs:element name="nImmigrationId" msprop:Generator_ColumnVarNameInTable="columnnImmigrationId" msprop:Generator_ColumnPropNameInRow="nImmigrationId" msprop:Generator_ColumnPropNameInTable="nImmigrationIdColumn" msprop:Generator_UserColumnName="nImmigrationId" type="xs:int" minOccurs="0" />
              <xs:element name="nCrewId" msprop:Generator_ColumnVarNameInTable="columnnCrewId" msprop:Generator_ColumnPropNameInRow="nCrewId" msprop:Generator_ColumnPropNameInTable="nCrewIdColumn" msprop:Generator_UserColumnName="nCrewId" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cIssuedBy" msprop:Generator_ColumnVarNameInTable="columncIssuedBy" msprop:Generator_ColumnPropNameInRow="cIssuedBy" msprop:Generator_ColumnPropNameInTable="cIssuedByColumn" msprop:Generator_UserColumnName="cIssuedBy" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cNumber" msprop:Generator_ColumnVarNameInTable="columncNumber" msprop:Generator_ColumnPropNameInRow="cNumber" msprop:Generator_ColumnPropNameInTable="cNumberColumn" msprop:Generator_UserColumnName="cNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dDateOfIssued" msprop:Generator_ColumnVarNameInTable="columndDateOfIssued" msprop:Generator_ColumnPropNameInRow="dDateOfIssued" msprop:Generator_ColumnPropNameInTable="dDateOfIssuedColumn" msprop:Generator_UserColumnName="dDateOfIssued" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dDateOfExpiry" msprop:Generator_ColumnVarNameInTable="columndDateOfExpiry" msprop:Generator_ColumnPropNameInRow="dDateOfExpiry" msprop:Generator_ColumnPropNameInTable="dDateOfExpiryColumn" msprop:Generator_UserColumnName="dDateOfExpiry" type="xs:dateTime" minOccurs="0" />
              <xs:element name="cDocName" msprop:Generator_ColumnVarNameInTable="columncDocName" msprop:Generator_ColumnPropNameInRow="cDocName" msprop:Generator_ColumnPropNameInTable="cDocNameColumn" msprop:Generator_UserColumnName="cDocName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblCrewTypeSummary" msprop:Generator_TableClassName="tblCrewTypeSummaryDataTable" msprop:Generator_TableVarName="tabletblCrewTypeSummary" msprop:Generator_TablePropName="tblCrewTypeSummary" msprop:Generator_RowDeletingName="tblCrewTypeSummaryRowDeleting" msprop:Generator_UserTableName="tblCrewTypeSummary" msprop:Generator_RowChangingName="tblCrewTypeSummaryRowChanging" msprop:Generator_RowEvHandlerName="tblCrewTypeSummaryRowChangeEventHandler" msprop:Generator_RowDeletedName="tblCrewTypeSummaryRowDeleted" msprop:Generator_RowEvArgName="tblCrewTypeSummaryRowChangeEvent" msprop:Generator_RowChangedName="tblCrewTypeSummaryRowChanged" msprop:Generator_RowClassName="tblCrewTypeSummaryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cTypeName" msprop:Generator_ColumnVarNameInTable="columncTypeName" msprop:Generator_ColumnPropNameInRow="cTypeName" msprop:Generator_ColumnPropNameInTable="cTypeNameColumn" msprop:Generator_UserColumnName="cTypeName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nVesselId" msprop:Generator_ColumnVarNameInTable="columnnVesselId" msprop:Generator_ColumnPropNameInRow="nVesselId" msprop:Generator_ColumnPropNameInTable="nVesselIdColumn" msprop:Generator_UserColumnName="nVesselId" type="xs:int" minOccurs="0" />
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="iRankType" msprop:Generator_ColumnVarNameInTable="columniRankType" msprop:Generator_ColumnPropNameInRow="iRankType" msprop:Generator_ColumnPropNameInTable="iRankTypeColumn" msprop:Generator_UserColumnName="iRankType" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblVacation" msprop:Generator_TableClassName="tblVacationDataTable" msprop:Generator_TableVarName="tabletblVacation" msprop:Generator_TablePropName="tblVacation" msprop:Generator_RowDeletingName="tblVacationRowDeleting" msprop:Generator_UserTableName="tblVacation" msprop:Generator_RowChangingName="tblVacationRowChanging" msprop:Generator_RowEvHandlerName="tblVacationRowChangeEventHandler" msprop:Generator_RowDeletedName="tblVacationRowDeleted" msprop:Generator_RowEvArgName="tblVacationRowChangeEvent" msprop:Generator_RowChangedName="tblVacationRowChanged" msprop:Generator_RowClassName="tblVacationRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
              <xs:element name="cTypeName" msprop:Generator_ColumnVarNameInTable="columncTypeName" msprop:Generator_ColumnPropNameInRow="cTypeName" msprop:Generator_ColumnPropNameInTable="cTypeNameColumn" msprop:Generator_UserColumnName="cTypeName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dLeave" msprop:Generator_ColumnVarNameInTable="columndLeave" msprop:Generator_ColumnPropNameInRow="dLeave" msprop:Generator_ColumnPropNameInTable="dLeaveColumn" msprop:Generator_UserColumnName="dLeave" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nRankID" msprop:Generator_ColumnVarNameInTable="columnnRankID" msprop:Generator_ColumnPropNameInRow="nRankID" msprop:Generator_ColumnPropNameInTable="nRankIDColumn" msprop:Generator_UserColumnName="nRankID" type="xs:int" minOccurs="0" />
              <xs:element name="iRankType" msprop:Generator_ColumnVarNameInTable="columniRankType" msprop:Generator_ColumnPropNameInRow="iRankType" msprop:Generator_ColumnPropNameInTable="iRankTypeColumn" msprop:Generator_UserColumnName="iRankType" type="xs:int" minOccurs="0" />
              <xs:element name="Department" msprop:Generator_ColumnVarNameInTable="columnDepartment" msprop:Generator_ColumnPropNameInRow="Department" msprop:Generator_ColumnPropNameInTable="DepartmentColumn" msprop:Generator_UserColumnName="Department" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="vacationDepartment" msprop:Generator_TableClassName="vacationDepartmentDataTable" msprop:Generator_TableVarName="tablevacationDepartment" msprop:Generator_TablePropName="vacationDepartment" msprop:Generator_RowDeletingName="vacationDepartmentRowDeleting" msprop:Generator_UserTableName="vacationDepartment" msprop:Generator_RowChangingName="vacationDepartmentRowChanging" msprop:Generator_RowEvHandlerName="vacationDepartmentRowChangeEventHandler" msprop:Generator_RowDeletedName="vacationDepartmentRowDeleted" msprop:Generator_RowEvArgName="vacationDepartmentRowChangeEvent" msprop:Generator_RowChangedName="vacationDepartmentRowChanged" msprop:Generator_RowClassName="vacationDepartmentRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Department" msprop:Generator_ColumnVarNameInTable="columnDepartment" msprop:Generator_ColumnPropNameInRow="Department" msprop:Generator_ColumnPropNameInTable="DepartmentColumn" msprop:Generator_UserColumnName="Department" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="sort" msprop:Generator_ColumnVarNameInTable="columnsort" msprop:Generator_ColumnPropNameInRow="sort" msprop:Generator_ColumnPropNameInTable="sortColumn" msprop:Generator_UserColumnName="sort" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblExprience" msprop:Generator_TableClassName="tblExprienceDataTable" msprop:Generator_TableVarName="tabletblExprience" msprop:Generator_TablePropName="tblExprience" msprop:Generator_RowDeletingName="tblExprienceRowDeleting" msprop:Generator_UserTableName="tblExprience" msprop:Generator_RowChangingName="tblExprienceRowChanging" msprop:Generator_RowEvHandlerName="tblExprienceRowChangeEventHandler" msprop:Generator_RowDeletedName="tblExprienceRowDeleted" msprop:Generator_RowEvArgName="tblExprienceRowChangeEvent" msprop:Generator_RowChangedName="tblExprienceRowChanged" msprop:Generator_RowClassName="tblExprienceRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nExprienceId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnnExprienceId" msprop:Generator_ColumnPropNameInRow="nExprienceId" msprop:Generator_ColumnPropNameInTable="nExprienceIdColumn" msprop:Generator_UserColumnName="nExprienceId" type="xs:int" />
              <xs:element name="nCrewId" msprop:Generator_ColumnVarNameInTable="columnnCrewId" msprop:Generator_ColumnPropNameInRow="nCrewId" msprop:Generator_ColumnPropNameInTable="nCrewIdColumn" msprop:Generator_UserColumnName="nCrewId" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankId" msprop:Generator_ColumnVarNameInTable="columnnRankId" msprop:Generator_ColumnPropNameInRow="nRankId" msprop:Generator_ColumnPropNameInTable="nRankIdColumn" msprop:Generator_UserColumnName="nRankId" type="xs:int" minOccurs="0" />
              <xs:element name="nVesselId" msprop:Generator_ColumnVarNameInTable="columnnVesselId" msprop:Generator_ColumnPropNameInRow="nVesselId" msprop:Generator_ColumnPropNameInTable="nVesselIdColumn" msprop:Generator_UserColumnName="nVesselId" type="xs:int" minOccurs="0" />
              <xs:element name="nEmbarkedPlace" msprop:Generator_ColumnVarNameInTable="columnnEmbarkedPlace" msprop:Generator_ColumnPropNameInRow="nEmbarkedPlace" msprop:Generator_ColumnPropNameInTable="nEmbarkedPlaceColumn" msprop:Generator_UserColumnName="nEmbarkedPlace" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nDisembarkedPlace" msprop:Generator_ColumnVarNameInTable="columnnDisembarkedPlace" msprop:Generator_ColumnPropNameInRow="nDisembarkedPlace" msprop:Generator_ColumnPropNameInTable="nDisembarkedPlaceColumn" msprop:Generator_UserColumnName="nDisembarkedPlace" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dEmbarkedDate" msprop:Generator_ColumnVarNameInTable="columndEmbarkedDate" msprop:Generator_ColumnPropNameInRow="dEmbarkedDate" msprop:Generator_ColumnPropNameInTable="dEmbarkedDateColumn" msprop:Generator_UserColumnName="dEmbarkedDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dDisembarkedDate" msprop:Generator_ColumnVarNameInTable="columndDisembarkedDate" msprop:Generator_ColumnPropNameInRow="dDisembarkedDate" msprop:Generator_ColumnPropNameInTable="dDisembarkedDateColumn" msprop:Generator_UserColumnName="dDisembarkedDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="fDuration" msprop:Generator_ColumnVarNameInTable="columnfDuration" msprop:Generator_ColumnPropNameInRow="fDuration" msprop:Generator_ColumnPropNameInTable="fDurationColumn" msprop:Generator_UserColumnName="fDuration" type="xs:double" minOccurs="0" />
              <xs:element name="cMakerName" msprop:Generator_ColumnVarNameInTable="columncMakerName" msprop:Generator_ColumnPropNameInRow="cMakerName" msprop:Generator_ColumnPropNameInTable="cMakerNameColumn" msprop:Generator_UserColumnName="cMakerName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cTypeName" msprop:Generator_ColumnVarNameInTable="columncTypeName" msprop:Generator_ColumnPropNameInRow="cTypeName" msprop:Generator_ColumnPropNameInTable="cTypeNameColumn" msprop:Generator_UserColumnName="cTypeName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nEngineType" msprop:Generator_ColumnVarNameInTable="columnnEngineType" msprop:Generator_ColumnPropNameInRow="nEngineType" msprop:Generator_ColumnPropNameInTable="nEngineTypeColumn" msprop:Generator_UserColumnName="nEngineType" type="xs:int" minOccurs="0" />
              <xs:element name="nEngineMaker" msprop:Generator_ColumnVarNameInTable="columnnEngineMaker" msprop:Generator_ColumnPropNameInRow="nEngineMaker" msprop:Generator_ColumnPropNameInTable="nEngineMakerColumn" msprop:Generator_UserColumnName="nEngineMaker" type="xs:int" minOccurs="0" />
              <xs:element name="fHorsePower" msprop:Generator_ColumnVarNameInTable="columnfHorsePower" msprop:Generator_ColumnPropNameInRow="fHorsePower" msprop:Generator_ColumnPropNameInTable="fHorsePowerColumn" msprop:Generator_UserColumnName="fHorsePower" type="xs:double" minOccurs="0" />
              <xs:element name="cVesselName" msprop:Generator_ColumnVarNameInTable="columncVesselName" msprop:Generator_ColumnPropNameInRow="cVesselName" msprop:Generator_ColumnPropNameInTable="cVesselNameColumn" msprop:Generator_UserColumnName="cVesselName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cShortName" msprop:Generator_ColumnVarNameInTable="columncShortName" msprop:Generator_ColumnPropNameInRow="cShortName" msprop:Generator_ColumnPropNameInTable="cShortNameColumn" msprop:Generator_UserColumnName="cShortName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cVesselManaged" msprop:Generator_ColumnVarNameInTable="columncVesselManaged" msprop:Generator_ColumnPropNameInRow="cVesselManaged" msprop:Generator_ColumnPropNameInTable="cVesselManagedColumn" msprop:Generator_UserColumnName="cVesselManaged" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nFlagId" msprop:Generator_ColumnVarNameInTable="columnnFlagId" msprop:Generator_ColumnPropNameInRow="nFlagId" msprop:Generator_ColumnPropNameInTable="nFlagIdColumn" msprop:Generator_UserColumnName="nFlagId" type="xs:int" minOccurs="0" />
              <xs:element name="nVesselTypeId" msprop:Generator_ColumnVarNameInTable="columnnVesselTypeId" msprop:Generator_ColumnPropNameInRow="nVesselTypeId" msprop:Generator_ColumnPropNameInTable="nVesselTypeIdColumn" msprop:Generator_UserColumnName="nVesselTypeId" type="xs:int" minOccurs="0" />
              <xs:element name="cTradeArea" msprop:Generator_ColumnVarNameInTable="columncTradeArea" msprop:Generator_ColumnPropNameInRow="cTradeArea" msprop:Generator_ColumnPropNameInTable="cTradeAreaColumn" msprop:Generator_UserColumnName="cTradeArea" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="fGRT" msprop:Generator_ColumnVarNameInTable="columnfGRT" msprop:Generator_ColumnPropNameInRow="fGRT" msprop:Generator_ColumnPropNameInTable="fGRTColumn" msprop:Generator_UserColumnName="fGRT" type="xs:double" minOccurs="0" />
              <xs:element name="cImoNumber" msprop:Generator_ColumnVarNameInTable="columncImoNumber" msprop:Generator_ColumnPropNameInRow="cImoNumber" msprop:Generator_ColumnPropNameInTable="cImoNumberColumn" msprop:Generator_UserColumnName="cImoNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cPortOfRegistry" msprop:Generator_ColumnVarNameInTable="columncPortOfRegistry" msprop:Generator_ColumnPropNameInRow="cPortOfRegistry" msprop:Generator_ColumnPropNameInTable="cPortOfRegistryColumn" msprop:Generator_UserColumnName="cPortOfRegistry" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dYearBuilt" msprop:Generator_ColumnVarNameInTable="columndYearBuilt" msprop:Generator_ColumnPropNameInRow="dYearBuilt" msprop:Generator_ColumnPropNameInTable="dYearBuiltColumn" msprop:Generator_UserColumnName="dYearBuilt" type="xs:dateTime" minOccurs="0" />
              <xs:element name="cFlagCountry" msprop:Generator_ColumnVarNameInTable="columncFlagCountry" msprop:Generator_ColumnPropNameInRow="cFlagCountry" msprop:Generator_ColumnPropNameInTable="cFlagCountryColumn" msprop:Generator_UserColumnName="cFlagCountry" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cVesselType" msprop:Generator_ColumnVarNameInTable="columncVesselType" msprop:Generator_ColumnPropNameInRow="cVesselType" msprop:Generator_ColumnPropNameInTable="cVesselTypeColumn" msprop:Generator_UserColumnName="cVesselType" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
              <xs:element name="iRankType" msprop:Generator_ColumnVarNameInTable="columniRankType" msprop:Generator_ColumnPropNameInRow="iRankType" msprop:Generator_ColumnPropNameInTable="iRankTypeColumn" msprop:Generator_UserColumnName="iRankType" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblDulieuKeToan" msprop:Generator_TableClassName="tblDulieuKeToanDataTable" msprop:Generator_TableVarName="tabletblDulieuKeToan" msprop:Generator_TablePropName="tblDulieuKeToan" msprop:Generator_RowDeletingName="tblDulieuKeToanRowDeleting" msprop:Generator_UserTableName="tblDulieuKeToan" msprop:Generator_RowChangingName="tblDulieuKeToanRowChanging" msprop:Generator_RowEvHandlerName="tblDulieuKeToanRowChangeEventHandler" msprop:Generator_RowDeletedName="tblDulieuKeToanRowDeleted" msprop:Generator_RowEvArgName="tblDulieuKeToanRowChangeEvent" msprop:Generator_RowChangedName="tblDulieuKeToanRowChanged" msprop:Generator_RowClassName="tblDulieuKeToanRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Số_x0020_BHXH" msprop:Generator_ColumnVarNameInTable="columnSố_BHXH" msprop:Generator_ColumnPropNameInRow="Số_BHXH" msprop:Generator_ColumnPropNameInTable="Số_BHXHColumn" msprop:Generator_UserColumnName="Số BHXH" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Mã_x0020_số_x0020_thuế" msprop:Generator_ColumnVarNameInTable="columnMã_số_thuế" msprop:Generator_ColumnPropNameInRow="Mã_số_thuế" msprop:Generator_ColumnPropNameInTable="Mã_số_thuếColumn" msprop:Generator_UserColumnName="Mã số thuế" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Số_x0020_TK_x0020_Ngân_x0020_hàng" msprop:Generator_ColumnVarNameInTable="columnSố_TK_Ngân_hàng" msprop:Generator_ColumnPropNameInRow="Số_TK_Ngân_hàng" msprop:Generator_ColumnPropNameInTable="Số_TK_Ngân_hàngColumn" msprop:Generator_UserColumnName="Số TK Ngân hàng" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ngân_x0020_hàng" msprop:Generator_ColumnVarNameInTable="columnNgân_hàng" msprop:Generator_ColumnPropNameInRow="Ngân_hàng" msprop:Generator_ColumnPropNameInTable="Ngân_hàngColumn" msprop:Generator_UserColumnName="Ngân hàng" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="sort" msprop:Generator_ColumnVarNameInTable="columnsort" msprop:Generator_ColumnPropNameInRow="sort" msprop:Generator_ColumnPropNameInTable="sortColumn" msprop:Generator_UserColumnName="sort" type="xs:int" minOccurs="0" />
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
              <xs:element name="cHomeNo" msprop:Generator_ColumnVarNameInTable="columncHomeNo" msprop:Generator_ColumnPropNameInRow="cHomeNo" msprop:Generator_ColumnPropNameInTable="cHomeNoColumn" msprop:Generator_UserColumnName="cHomeNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cHandNo" msprop:Generator_ColumnVarNameInTable="columncHandNo" msprop:Generator_ColumnPropNameInRow="cHandNo" msprop:Generator_ColumnPropNameInTable="cHandNoColumn" msprop:Generator_UserColumnName="cHandNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PhuongXaID" msprop:Generator_ColumnVarNameInTable="columnPhuongXaID" msprop:Generator_ColumnPropNameInRow="PhuongXaID" msprop:Generator_ColumnPropNameInTable="PhuongXaIDColumn" msprop:Generator_UserColumnName="PhuongXaID" type="xs:int" minOccurs="0" />
              <xs:element name="QuanHuyenID" msprop:Generator_ColumnVarNameInTable="columnQuanHuyenID" msprop:Generator_ColumnPropNameInRow="QuanHuyenID" msprop:Generator_ColumnPropNameInTable="QuanHuyenIDColumn" msprop:Generator_UserColumnName="QuanHuyenID" type="xs:int" minOccurs="0" />
              <xs:element name="TinhThanhID" msprop:Generator_ColumnVarNameInTable="columnTinhThanhID" msprop:Generator_ColumnPropNameInRow="TinhThanhID" msprop:Generator_ColumnPropNameInTable="TinhThanhIDColumn" msprop:Generator_UserColumnName="TinhThanhID" type="xs:int" minOccurs="0" />
              <xs:element name="cAddress" msprop:Generator_ColumnVarNameInTable="columncAddress" msprop:Generator_ColumnPropNameInRow="cAddress" msprop:Generator_ColumnPropNameInTable="cAddressColumn" msprop:Generator_UserColumnName="cAddress" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenQuanHuyen" msprop:Generator_ColumnVarNameInTable="columnTenQuanHuyen" msprop:Generator_ColumnPropNameInRow="TenQuanHuyen" msprop:Generator_ColumnPropNameInTable="TenQuanHuyenColumn" msprop:Generator_UserColumnName="TenQuanHuyen" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenPhuongXa" msprop:Generator_ColumnVarNameInTable="columnTenPhuongXa" msprop:Generator_ColumnPropNameInRow="TenPhuongXa" msprop:Generator_ColumnPropNameInTable="TenPhuongXaColumn" msprop:Generator_UserColumnName="TenPhuongXa" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenTinhThanh" msprop:Generator_ColumnVarNameInTable="columnTenTinhThanh" msprop:Generator_ColumnPropNameInRow="TenTinhThanh" msprop:Generator_ColumnPropNameInTable="TenTinhThanhColumn" msprop:Generator_UserColumnName="TenTinhThanh" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Số_x0020_HĐLĐ" msprop:Generator_ColumnVarNameInTable="columnSố_HĐLĐ" msprop:Generator_ColumnPropNameInRow="Số_HĐLĐ" msprop:Generator_ColumnPropNameInTable="Số_HĐLĐColumn" msprop:Generator_UserColumnName="Số HĐLĐ" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ngày_x0020_ký" msprop:Generator_ColumnVarNameInTable="columnNgày_ký" msprop:Generator_ColumnPropNameInRow="Ngày_ký" msprop:Generator_ColumnPropNameInTable="Ngày_kýColumn" msprop:Generator_UserColumnName="Ngày ký" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Thời_x0020_hạn" msprop:Generator_ColumnVarNameInTable="columnThời_hạn" msprop:Generator_ColumnPropNameInRow="Thời_hạn" msprop:Generator_ColumnPropNameInTable="Thời_hạnColumn" msprop:Generator_UserColumnName="Thời hạn" type="xs:short" minOccurs="0" />
              <xs:element name="Ngày_x0020_hết_x0020_hạn" msprop:Generator_ColumnVarNameInTable="columnNgày_hết_hạn" msprop:Generator_ColumnPropNameInRow="Ngày_hết_hạn" msprop:Generator_ColumnPropNameInTable="Ngày_hết_hạnColumn" msprop:Generator_UserColumnName="Ngày hết hạn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LoaiHDLD" msprop:Generator_ColumnVarNameInTable="columnLoaiHDLD" msprop:Generator_ColumnPropNameInRow="LoaiHDLD" msprop:Generator_ColumnPropNameInTable="LoaiHDLDColumn" msprop:Generator_UserColumnName="LoaiHDLD" type="xs:int" minOccurs="0" />
              <xs:element name="Tên_x0020_loại_x0020_hợp_x0020_đồng" msprop:Generator_ColumnVarNameInTable="columnTên_loại_hợp_đồng" msprop:Generator_ColumnPropNameInRow="Tên_loại_hợp_đồng" msprop:Generator_ColumnPropNameInTable="Tên_loại_hợp_đồngColumn" msprop:Generator_UserColumnName="Tên loại hợp đồng" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nCrewId" msprop:Generator_ColumnVarNameInTable="columnnCrewId" msprop:Generator_ColumnPropNameInRow="nCrewId" msprop:Generator_ColumnPropNameInTable="nCrewIdColumn" msprop:Generator_UserColumnName="nCrewId">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="soluong" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnsoluong" msprop:Generator_ColumnPropNameInRow="soluong" msprop:Generator_ColumnPropNameInTable="soluongColumn" msprop:Generator_UserColumnName="soluong" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblQuanHe" msprop:Generator_TableClassName="tblQuanHeDataTable" msprop:Generator_TableVarName="tabletblQuanHe" msprop:Generator_TablePropName="tblQuanHe" msprop:Generator_RowDeletingName="tblQuanHeRowDeleting" msprop:Generator_UserTableName="tblQuanHe" msprop:Generator_RowChangingName="tblQuanHeRowChanging" msprop:Generator_RowEvHandlerName="tblQuanHeRowChangeEventHandler" msprop:Generator_RowDeletedName="tblQuanHeRowDeleted" msprop:Generator_RowEvArgName="tblQuanHeRowChangeEvent" msprop:Generator_RowChangedName="tblQuanHeRowChanged" msprop:Generator_RowClassName="tblQuanHeRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="soluong" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnsoluong" msprop:Generator_ColumnPropNameInRow="soluong" msprop:Generator_ColumnPropNameInTable="soluongColumn" msprop:Generator_UserColumnName="soluong" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblShortPlan" msprop:Generator_TableClassName="tblShortPlanDataTable" msprop:Generator_TableVarName="tabletblShortPlan" msprop:Generator_TablePropName="tblShortPlan" msprop:Generator_RowDeletingName="tblShortPlanRowDeleting" msprop:Generator_UserTableName="tblShortPlan" msprop:Generator_RowChangingName="tblShortPlanRowChanging" msprop:Generator_RowEvHandlerName="tblShortPlanRowChangeEventHandler" msprop:Generator_RowDeletedName="tblShortPlanRowDeleted" msprop:Generator_RowEvArgName="tblShortPlanRowChangeEvent" msprop:Generator_RowChangedName="tblShortPlanRowChanged" msprop:Generator_RowClassName="tblShortPlanRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PlanID" msprop:Generator_ColumnVarNameInTable="columnPlanID" msprop:Generator_ColumnPropNameInRow="PlanID" msprop:Generator_ColumnPropNameInTable="PlanIDColumn" msprop:Generator_UserColumnName="PlanID" type="xs:int" minOccurs="0" />
              <xs:element name="VesselID" msprop:Generator_ColumnVarNameInTable="columnVesselID" msprop:Generator_ColumnPropNameInRow="VesselID" msprop:Generator_ColumnPropNameInTable="VesselIDColumn" msprop:Generator_UserColumnName="VesselID" type="xs:int" minOccurs="0" />
              <xs:element name="nCrewID" msprop:Generator_ColumnVarNameInTable="columnnCrewID" msprop:Generator_ColumnPropNameInRow="nCrewID" msprop:Generator_ColumnPropNameInTable="nCrewIDColumn" msprop:Generator_UserColumnName="nCrewID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dEmbarkedDate" msprop:Generator_ColumnVarNameInTable="columndEmbarkedDate" msprop:Generator_ColumnPropNameInRow="dEmbarkedDate" msprop:Generator_ColumnPropNameInTable="dEmbarkedDateColumn" msprop:Generator_UserColumnName="dEmbarkedDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DurationOnboard" msprop:Generator_ColumnVarNameInTable="columnDurationOnboard" msprop:Generator_ColumnPropNameInRow="DurationOnboard" msprop:Generator_ColumnPropNameInTable="DurationOnboardColumn" msprop:Generator_UserColumnName="DurationOnboard" type="xs:double" minOccurs="0" />
              <xs:element name="nCrewIDNext" msprop:Generator_ColumnVarNameInTable="columnnCrewIDNext" msprop:Generator_ColumnPropNameInRow="nCrewIDNext" msprop:Generator_ColumnPropNameInTable="nCrewIDNextColumn" msprop:Generator_UserColumnName="nCrewIDNext" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TGHopDong" msprop:Generator_ColumnVarNameInTable="columnTGHopDong" msprop:Generator_ColumnPropNameInRow="TGHopDong" msprop:Generator_ColumnPropNameInTable="TGHopDongColumn" msprop:Generator_UserColumnName="TGHopDong" type="xs:short" minOccurs="0" />
              <xs:element name="TGDuKienLenTau" msprop:Generator_ColumnVarNameInTable="columnTGDuKienLenTau" msprop:Generator_ColumnPropNameInRow="TGDuKienLenTau" msprop:Generator_ColumnPropNameInTable="TGDuKienLenTauColumn" msprop:Generator_UserColumnName="TGDuKienLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="TGDuKienRoiTau" msprop:Generator_ColumnVarNameInTable="columnTGDuKienRoiTau" msprop:Generator_ColumnPropNameInRow="TGDuKienRoiTau" msprop:Generator_ColumnPropNameInTable="TGDuKienRoiTauColumn" msprop:Generator_UserColumnName="TGDuKienRoiTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nGhiChu" msprop:Generator_ColumnVarNameInTable="columnnGhiChu" msprop:Generator_ColumnPropNameInRow="nGhiChu" msprop:Generator_ColumnPropNameInTable="nGhiChuColumn" msprop:Generator_UserColumnName="nGhiChu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nContract" msprop:Generator_ColumnVarNameInTable="columnnContract" msprop:Generator_ColumnPropNameInRow="nContract" msprop:Generator_ColumnPropNameInTable="nContractColumn" msprop:Generator_UserColumnName="nContract" type="xs:short" minOccurs="0" />
              <xs:element name="isDone" msprop:Generator_ColumnVarNameInTable="columnisDone" msprop:Generator_ColumnPropNameInRow="isDone" msprop:Generator_ColumnPropNameInTable="isDoneColumn" msprop:Generator_UserColumnName="isDone" type="xs:boolean" minOccurs="0" />
              <xs:element name="NgayDuKienThayTV" msprop:Generator_ColumnVarNameInTable="columnNgayDuKienThayTV" msprop:Generator_ColumnPropNameInRow="NgayDuKienThayTV" msprop:Generator_ColumnPropNameInTable="NgayDuKienThayTVColumn" msprop:Generator_UserColumnName="NgayDuKienThayTV" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NgayTTLenTau" msprop:Generator_ColumnVarNameInTable="columnNgayTTLenTau" msprop:Generator_ColumnPropNameInRow="NgayTTLenTau" msprop:Generator_ColumnPropNameInTable="NgayTTLenTauColumn" msprop:Generator_UserColumnName="NgayTTLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NgayTTXuongTau" msprop:Generator_ColumnVarNameInTable="columnNgayTTXuongTau" msprop:Generator_ColumnPropNameInRow="NgayTTXuongTau" msprop:Generator_ColumnPropNameInTable="NgayTTXuongTauColumn" msprop:Generator_UserColumnName="NgayTTXuongTau" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblTrainingCrewCourse" msprop:Generator_TableClassName="tblTrainingCrewCourseDataTable" msprop:Generator_TableVarName="tabletblTrainingCrewCourse" msprop:Generator_TablePropName="tblTrainingCrewCourse" msprop:Generator_RowDeletingName="tblTrainingCrewCourseRowDeleting" msprop:Generator_UserTableName="tblTrainingCrewCourse" msprop:Generator_RowChangingName="tblTrainingCrewCourseRowChanging" msprop:Generator_RowEvHandlerName="tblTrainingCrewCourseRowChangeEventHandler" msprop:Generator_RowDeletedName="tblTrainingCrewCourseRowDeleted" msprop:Generator_RowEvArgName="tblTrainingCrewCourseRowChangeEvent" msprop:Generator_RowChangedName="tblTrainingCrewCourseRowChanged" msprop:Generator_RowClassName="tblTrainingCrewCourseRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nCrewId" msprop:Generator_ColumnVarNameInTable="columnnCrewId" msprop:Generator_ColumnPropNameInRow="nCrewId" msprop:Generator_ColumnPropNameInTable="nCrewIdColumn" msprop:Generator_UserColumnName="nCrewId" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dNgayVe" msprop:Generator_ColumnVarNameInTable="columndNgayVe" msprop:Generator_ColumnPropNameInRow="dNgayVe" msprop:Generator_ColumnPropNameInTable="dNgayVeColumn" msprop:Generator_UserColumnName="dNgayVe" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nDuKienThoiGianNghi" msprop:Generator_ColumnVarNameInTable="columnnDuKienThoiGianNghi" msprop:Generator_ColumnPropNameInRow="nDuKienThoiGianNghi" msprop:Generator_ColumnPropNameInTable="nDuKienThoiGianNghiColumn" msprop:Generator_UserColumnName="nDuKienThoiGianNghi" type="xs:int" minOccurs="0" />
              <xs:element name="dDuKienThoiGianLenTau" msprop:Generator_ColumnVarNameInTable="columndDuKienThoiGianLenTau" msprop:Generator_ColumnPropNameInRow="dDuKienThoiGianLenTau" msprop:Generator_ColumnPropNameInTable="dDuKienThoiGianLenTauColumn" msprop:Generator_UserColumnName="dDuKienThoiGianLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblToTrinh" msprop:Generator_TableClassName="tblToTrinhDataTable" msprop:Generator_TableVarName="tabletblToTrinh" msprop:Generator_TablePropName="tblToTrinh" msprop:Generator_RowDeletingName="tblToTrinhRowDeleting" msprop:Generator_UserTableName="tblToTrinh" msprop:Generator_RowChangingName="tblToTrinhRowChanging" msprop:Generator_RowEvHandlerName="tblToTrinhRowChangeEventHandler" msprop:Generator_RowDeletedName="tblToTrinhRowDeleted" msprop:Generator_RowEvArgName="tblToTrinhRowChangeEvent" msprop:Generator_RowChangedName="tblToTrinhRowChanged" msprop:Generator_RowClassName="tblToTrinhRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PlanID" msprop:Generator_ColumnVarNameInTable="columnPlanID" msprop:Generator_ColumnPropNameInRow="PlanID" msprop:Generator_ColumnPropNameInTable="PlanIDColumn" msprop:Generator_UserColumnName="PlanID" type="xs:int" minOccurs="0" />
              <xs:element name="VesselID" msprop:Generator_ColumnVarNameInTable="columnVesselID" msprop:Generator_ColumnPropNameInRow="VesselID" msprop:Generator_ColumnPropNameInTable="VesselIDColumn" msprop:Generator_UserColumnName="VesselID" type="xs:int" minOccurs="0" />
              <xs:element name="nCrewID" msprop:Generator_ColumnVarNameInTable="columnnCrewID" msprop:Generator_ColumnPropNameInRow="nCrewID" msprop:Generator_ColumnPropNameInTable="nCrewIDColumn" msprop:Generator_UserColumnName="nCrewID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dEmbarkedDate" msprop:Generator_ColumnVarNameInTable="columndEmbarkedDate" msprop:Generator_ColumnPropNameInRow="dEmbarkedDate" msprop:Generator_ColumnPropNameInTable="dEmbarkedDateColumn" msprop:Generator_UserColumnName="dEmbarkedDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DurationOnboard" msprop:Generator_ColumnVarNameInTable="columnDurationOnboard" msprop:Generator_ColumnPropNameInRow="DurationOnboard" msprop:Generator_ColumnPropNameInTable="DurationOnboardColumn" msprop:Generator_UserColumnName="DurationOnboard" type="xs:double" minOccurs="0" />
              <xs:element name="nCrewIDNext" msprop:Generator_ColumnVarNameInTable="columnnCrewIDNext" msprop:Generator_ColumnPropNameInRow="nCrewIDNext" msprop:Generator_ColumnPropNameInTable="nCrewIDNextColumn" msprop:Generator_UserColumnName="nCrewIDNext" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TGHopDong" msprop:Generator_ColumnVarNameInTable="columnTGHopDong" msprop:Generator_ColumnPropNameInRow="TGHopDong" msprop:Generator_ColumnPropNameInTable="TGHopDongColumn" msprop:Generator_UserColumnName="TGHopDong" type="xs:short" minOccurs="0" />
              <xs:element name="TGDuKienLenTau" msprop:Generator_ColumnVarNameInTable="columnTGDuKienLenTau" msprop:Generator_ColumnPropNameInRow="TGDuKienLenTau" msprop:Generator_ColumnPropNameInTable="TGDuKienLenTauColumn" msprop:Generator_UserColumnName="TGDuKienLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="TGDuKienRoiTau" msprop:Generator_ColumnVarNameInTable="columnTGDuKienRoiTau" msprop:Generator_ColumnPropNameInRow="TGDuKienRoiTau" msprop:Generator_ColumnPropNameInTable="TGDuKienRoiTauColumn" msprop:Generator_UserColumnName="TGDuKienRoiTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nGhiChu" msprop:Generator_ColumnVarNameInTable="columnnGhiChu" msprop:Generator_ColumnPropNameInRow="nGhiChu" msprop:Generator_ColumnPropNameInTable="nGhiChuColumn" msprop:Generator_UserColumnName="nGhiChu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nContract" msprop:Generator_ColumnVarNameInTable="columnnContract" msprop:Generator_ColumnPropNameInRow="nContract" msprop:Generator_ColumnPropNameInTable="nContractColumn" msprop:Generator_UserColumnName="nContract" type="xs:short" minOccurs="0" />
              <xs:element name="isDone" msprop:Generator_ColumnVarNameInTable="columnisDone" msprop:Generator_ColumnPropNameInRow="isDone" msprop:Generator_ColumnPropNameInTable="isDoneColumn" msprop:Generator_UserColumnName="isDone" type="xs:boolean" minOccurs="0" />
              <xs:element name="NgayDuKienThayTV" msprop:Generator_ColumnVarNameInTable="columnNgayDuKienThayTV" msprop:Generator_ColumnPropNameInRow="NgayDuKienThayTV" msprop:Generator_ColumnPropNameInTable="NgayDuKienThayTVColumn" msprop:Generator_UserColumnName="NgayDuKienThayTV" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NgayTTLenTau" msprop:Generator_ColumnVarNameInTable="columnNgayTTLenTau" msprop:Generator_ColumnPropNameInRow="NgayTTLenTau" msprop:Generator_ColumnPropNameInTable="NgayTTLenTauColumn" msprop:Generator_UserColumnName="NgayTTLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NgayTTXuongTau" msprop:Generator_ColumnVarNameInTable="columnNgayTTXuongTau" msprop:Generator_ColumnPropNameInRow="NgayTTXuongTau" msprop:Generator_ColumnPropNameInTable="NgayTTXuongTauColumn" msprop:Generator_UserColumnName="NgayTTXuongTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NoiLen" msprop:Generator_ColumnVarNameInTable="columnNoiLen" msprop:Generator_ColumnPropNameInRow="NoiLen" msprop:Generator_ColumnPropNameInTable="NoiLenColumn" msprop:Generator_UserColumnName="NoiLen" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NoiXuong" msprop:Generator_ColumnVarNameInTable="columnNoiXuong" msprop:Generator_ColumnPropNameInRow="NoiXuong" msprop:Generator_ColumnPropNameInTable="NoiXuongColumn" msprop:Generator_UserColumnName="NoiXuong" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NgayLenTau" msprop:Generator_ColumnVarNameInTable="columnNgayLenTau" msprop:Generator_ColumnPropNameInRow="NgayLenTau" msprop:Generator_ColumnPropNameInTable="NgayLenTauColumn" msprop:Generator_UserColumnName="NgayLenTau" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblKeHoach" msprop:Generator_TableClassName="tblKeHoachDataTable" msprop:Generator_TableVarName="tabletblKeHoach" msprop:Generator_TablePropName="tblKeHoach" msprop:Generator_RowDeletingName="tblKeHoachRowDeleting" msprop:Generator_UserTableName="tblKeHoach" msprop:Generator_RowChangingName="tblKeHoachRowChanging" msprop:Generator_RowEvHandlerName="tblKeHoachRowChangeEventHandler" msprop:Generator_RowDeletedName="tblKeHoachRowDeleted" msprop:Generator_RowEvArgName="tblKeHoachRowChangeEvent" msprop:Generator_RowChangedName="tblKeHoachRowChanged" msprop:Generator_RowClassName="tblKeHoachRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Planid" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnPlanid" msprop:Generator_ColumnPropNameInRow="Planid" msprop:Generator_ColumnPropNameInTable="PlanidColumn" msprop:Generator_UserColumnName="Planid" type="xs:int" />
              <xs:element name="Tên_x0020_kế_x0020_hoạch" msprop:Generator_ColumnVarNameInTable="columnTên_kế_hoạch" msprop:Generator_ColumnPropNameInRow="Tên_kế_hoạch" msprop:Generator_ColumnPropNameInTable="Tên_kế_hoạchColumn" msprop:Generator_UserColumnName="Tên kế hoạch" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Người_x0020_lập_x0020_kế_x0020_hoạch" msprop:Generator_ColumnVarNameInTable="columnNgười_lập_kế_hoạch" msprop:Generator_ColumnPropNameInRow="Người_lập_kế_hoạch" msprop:Generator_ColumnPropNameInTable="Người_lập_kế_hoạchColumn" msprop:Generator_UserColumnName="Người lập kế hoạch" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ngày_x0020_lập_x0020_kế_x0020_hoạch" msprop:Generator_ColumnVarNameInTable="columnNgày_lập_kế_hoạch" msprop:Generator_ColumnPropNameInRow="Ngày_lập_kế_hoạch" msprop:Generator_ColumnPropNameInTable="Ngày_lập_kế_hoạchColumn" msprop:Generator_UserColumnName="Ngày lập kế hoạch" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Ngày_x0020_chỉnh_x0020_sửa" msprop:Generator_ColumnVarNameInTable="columnNgày_chỉnh_sửa" msprop:Generator_ColumnPropNameInRow="Ngày_chỉnh_sửa" msprop:Generator_ColumnPropNameInTable="Ngày_chỉnh_sửaColumn" msprop:Generator_UserColumnName="Ngày chỉnh sửa" type="xs:dateTime" minOccurs="0" />
              <xs:element name="isLongPlan" msprop:Generator_ColumnVarNameInTable="columnisLongPlan" msprop:Generator_ColumnPropNameInRow="isLongPlan" msprop:Generator_ColumnPropNameInTable="isLongPlanColumn" msprop:Generator_UserColumnName="isLongPlan" type="xs:boolean" minOccurs="0" />
              <xs:element name="Mô_x0020_tả" msprop:Generator_ColumnVarNameInTable="columnMô_tả" msprop:Generator_ColumnPropNameInRow="Mô_tả" msprop:Generator_ColumnPropNameInTable="Mô_tảColumn" msprop:Generator_UserColumnName="Mô tả" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Từ" msprop:Generator_ColumnVarNameInTable="columnTừ" msprop:Generator_ColumnPropNameInRow="Từ" msprop:Generator_ColumnPropNameInTable="TừColumn" msprop:Generator_UserColumnName="Từ" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Đến" msprop:Generator_ColumnVarNameInTable="columnĐến" msprop:Generator_ColumnPropNameInRow="Đến" msprop:Generator_ColumnPropNameInTable="ĐếnColumn" msprop:Generator_UserColumnName="Đến" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Đã_x0020_duyệt" msprop:Generator_ColumnVarNameInTable="columnĐã_duyệt" msprop:Generator_ColumnPropNameInRow="Đã_duyệt" msprop:Generator_ColumnPropNameInTable="Đã_duyệtColumn" msprop:Generator_UserColumnName="Đã duyệt" type="xs:boolean" minOccurs="0" />
              <xs:element name="isDone" msprop:Generator_ColumnVarNameInTable="columnisDone" msprop:Generator_ColumnPropNameInRow="isDone" msprop:Generator_ColumnPropNameInTable="isDoneColumn" msprop:Generator_UserColumnName="isDone" type="xs:boolean" minOccurs="0" />
              <xs:element name="NguoiChinhSua" msprop:Generator_ColumnVarNameInTable="columnNguoiChinhSua" msprop:Generator_ColumnPropNameInRow="NguoiChinhSua" msprop:Generator_ColumnPropNameInTable="NguoiChinhSuaColumn" msprop:Generator_UserColumnName="NguoiChinhSua" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NgayDuKienThucHien" msprop:Generator_ColumnVarNameInTable="columnNgayDuKienThucHien" msprop:Generator_ColumnPropNameInRow="NgayDuKienThucHien" msprop:Generator_ColumnPropNameInTable="NgayDuKienThucHienColumn" msprop:Generator_UserColumnName="NgayDuKienThucHien" type="xs:dateTime" minOccurs="0" />
              <xs:element name="IsDone" msprop:Generator_ColumnVarNameInTable="columnIsDone" msprop:Generator_ColumnPropNameInRow="IsDone" msprop:Generator_ColumnPropNameInTable="IsDoneColumn" msprop:Generator_UserColumnName="IsDone" type="xs:boolean" minOccurs="0" />
              <xs:element name="CangDuKien" msprop:Generator_ColumnVarNameInTable="columnCangDuKien" msprop:Generator_ColumnPropNameInRow="CangDuKien" msprop:Generator_ColumnPropNameInTable="CangDuKienColumn" msprop:Generator_UserColumnName="CangDuKien" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblCountTrainingCrewCourse" msprop:Generator_TableClassName="tblCountTrainingCrewCourseDataTable" msprop:Generator_TableVarName="tabletblCountTrainingCrewCourse" msprop:Generator_TablePropName="tblCountTrainingCrewCourse" msprop:Generator_RowDeletingName="tblCountTrainingCrewCourseRowDeleting" msprop:Generator_UserTableName="tblCountTrainingCrewCourse" msprop:Generator_RowChangingName="tblCountTrainingCrewCourseRowChanging" msprop:Generator_RowEvHandlerName="tblCountTrainingCrewCourseRowChangeEventHandler" msprop:Generator_RowDeletedName="tblCountTrainingCrewCourseRowDeleted" msprop:Generator_RowEvArgName="tblCountTrainingCrewCourseRowChangeEvent" msprop:Generator_RowChangedName="tblCountTrainingCrewCourseRowChanged" msprop:Generator_RowClassName="tblCountTrainingCrewCourseRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="nCrewId" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnnCrewId" msprop:Generator_ColumnPropNameInRow="nCrewId" msprop:Generator_ColumnPropNameInTable="nCrewIdColumn" msprop:Generator_UserColumnName="nCrewId" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nCrewId2" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnnCrewId2" msprop:Generator_ColumnPropNameInRow="nCrewId2" msprop:Generator_ColumnPropNameInTable="nCrewId2Column" msprop:Generator_UserColumnName="nCrewId2" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFamilyName" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cCourseName" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncCourseName" msprop:Generator_ColumnPropNameInRow="cCourseName" msprop:Generator_ColumnPropNameInTable="cCourseNameColumn" msprop:Generator_UserColumnName="cCourseName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblGuiChuTau" msprop:Generator_TableClassName="tblGuiChuTauDataTable" msprop:Generator_TableVarName="tabletblGuiChuTau" msprop:Generator_TablePropName="tblGuiChuTau" msprop:Generator_RowDeletingName="tblGuiChuTauRowDeleting" msprop:Generator_UserTableName="tblGuiChuTau" msprop:Generator_RowChangingName="tblGuiChuTauRowChanging" msprop:Generator_RowEvHandlerName="tblGuiChuTauRowChangeEventHandler" msprop:Generator_RowDeletedName="tblGuiChuTauRowDeleted" msprop:Generator_RowEvArgName="tblGuiChuTauRowChangeEvent" msprop:Generator_RowChangedName="tblGuiChuTauRowChanged" msprop:Generator_RowClassName="tblGuiChuTauRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PlanID" msprop:Generator_ColumnVarNameInTable="columnPlanID" msprop:Generator_ColumnPropNameInRow="PlanID" msprop:Generator_ColumnPropNameInTable="PlanIDColumn" msprop:Generator_UserColumnName="PlanID" type="xs:int" minOccurs="0" />
              <xs:element name="VesselID" msprop:Generator_ColumnVarNameInTable="columnVesselID" msprop:Generator_ColumnPropNameInRow="VesselID" msprop:Generator_ColumnPropNameInTable="VesselIDColumn" msprop:Generator_UserColumnName="VesselID" type="xs:int" minOccurs="0" />
              <xs:element name="nCrewID" msprop:Generator_ColumnVarNameInTable="columnnCrewID" msprop:Generator_ColumnPropNameInRow="nCrewID" msprop:Generator_ColumnPropNameInTable="nCrewIDColumn" msprop:Generator_UserColumnName="nCrewID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dEmbarkedDate" msprop:Generator_ColumnVarNameInTable="columndEmbarkedDate" msprop:Generator_ColumnPropNameInRow="dEmbarkedDate" msprop:Generator_ColumnPropNameInTable="dEmbarkedDateColumn" msprop:Generator_UserColumnName="dEmbarkedDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DurationOnboard" msprop:Generator_ColumnVarNameInTable="columnDurationOnboard" msprop:Generator_ColumnPropNameInRow="DurationOnboard" msprop:Generator_ColumnPropNameInTable="DurationOnboardColumn" msprop:Generator_UserColumnName="DurationOnboard" type="xs:double" minOccurs="0" />
              <xs:element name="TGHopDong" msprop:Generator_ColumnVarNameInTable="columnTGHopDong" msprop:Generator_ColumnPropNameInRow="TGHopDong" msprop:Generator_ColumnPropNameInTable="TGHopDongColumn" msprop:Generator_UserColumnName="TGHopDong" type="xs:short" minOccurs="0" />
              <xs:element name="TGDuKienLenTau" msprop:Generator_ColumnVarNameInTable="columnTGDuKienLenTau" msprop:Generator_ColumnPropNameInRow="TGDuKienLenTau" msprop:Generator_ColumnPropNameInTable="TGDuKienLenTauColumn" msprop:Generator_UserColumnName="TGDuKienLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="TGDuKienRoiTau" msprop:Generator_ColumnVarNameInTable="columnTGDuKienRoiTau" msprop:Generator_ColumnPropNameInRow="TGDuKienRoiTau" msprop:Generator_ColumnPropNameInTable="TGDuKienRoiTauColumn" msprop:Generator_UserColumnName="TGDuKienRoiTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="nGhiChu" msprop:Generator_ColumnVarNameInTable="columnnGhiChu" msprop:Generator_ColumnPropNameInRow="nGhiChu" msprop:Generator_ColumnPropNameInTable="nGhiChuColumn" msprop:Generator_UserColumnName="nGhiChu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nContract" msprop:Generator_ColumnVarNameInTable="columnnContract" msprop:Generator_ColumnPropNameInRow="nContract" msprop:Generator_ColumnPropNameInTable="nContractColumn" msprop:Generator_UserColumnName="nContract" type="xs:short" minOccurs="0" />
              <xs:element name="isDone" msprop:Generator_ColumnVarNameInTable="columnisDone" msprop:Generator_ColumnPropNameInRow="isDone" msprop:Generator_ColumnPropNameInTable="isDoneColumn" msprop:Generator_UserColumnName="isDone" type="xs:boolean" minOccurs="0" />
              <xs:element name="NgayDuKienThayTV" msprop:Generator_ColumnVarNameInTable="columnNgayDuKienThayTV" msprop:Generator_ColumnPropNameInRow="NgayDuKienThayTV" msprop:Generator_ColumnPropNameInTable="NgayDuKienThayTVColumn" msprop:Generator_UserColumnName="NgayDuKienThayTV" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NgayTTLenTau" msprop:Generator_ColumnVarNameInTable="columnNgayTTLenTau" msprop:Generator_ColumnPropNameInRow="NgayTTLenTau" msprop:Generator_ColumnPropNameInTable="NgayTTLenTauColumn" msprop:Generator_UserColumnName="NgayTTLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NgayTTXuongTau" msprop:Generator_ColumnVarNameInTable="columnNgayTTXuongTau" msprop:Generator_ColumnPropNameInRow="NgayTTXuongTau" msprop:Generator_ColumnPropNameInTable="NgayTTXuongTauColumn" msprop:Generator_UserColumnName="NgayTTXuongTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NoiLen" msprop:Generator_ColumnVarNameInTable="columnNoiLen" msprop:Generator_ColumnPropNameInRow="NoiLen" msprop:Generator_ColumnPropNameInTable="NoiLenColumn" msprop:Generator_UserColumnName="NoiLen" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NoiXuong" msprop:Generator_ColumnVarNameInTable="columnNoiXuong" msprop:Generator_ColumnPropNameInRow="NoiXuong" msprop:Generator_ColumnPropNameInTable="NoiXuongColumn" msprop:Generator_UserColumnName="NoiXuong" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nCrewIDNext" msprop:Generator_ColumnVarNameInTable="columnnCrewIDNext" msprop:Generator_ColumnPropNameInRow="nCrewIDNext" msprop:Generator_ColumnPropNameInTable="nCrewIDNextColumn" msprop:Generator_UserColumnName="nCrewIDNext" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dDateOfBirth" msprop:Generator_ColumnVarNameInTable="columndDateOfBirth" msprop:Generator_ColumnPropNameInRow="dDateOfBirth" msprop:Generator_ColumnPropNameInTable="dDateOfBirthColumn" msprop:Generator_UserColumnName="dDateOfBirth" type="xs:dateTime" minOccurs="0" />
              <xs:element name="cPlaceOfBirth" msprop:Generator_ColumnVarNameInTable="columncPlaceOfBirth" msprop:Generator_ColumnPropNameInRow="cPlaceOfBirth" msprop:Generator_ColumnPropNameInTable="cPlaceOfBirthColumn" msprop:Generator_UserColumnName="cPlaceOfBirth" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dLeave" msprop:Generator_ColumnVarNameInTable="columndLeave" msprop:Generator_ColumnPropNameInRow="dLeave" msprop:Generator_ColumnPropNameInTable="dLeaveColumn" msprop:Generator_UserColumnName="dLeave" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CrewImmigration" msprop:Generator_TableClassName="CrewImmigrationDataTable" msprop:Generator_TableVarName="tableCrewImmigration" msprop:Generator_TablePropName="CrewImmigration" msprop:Generator_RowDeletingName="CrewImmigrationRowDeleting" msprop:Generator_UserTableName="CrewImmigration" msprop:Generator_RowChangingName="CrewImmigrationRowChanging" msprop:Generator_RowEvHandlerName="CrewImmigrationRowChangeEventHandler" msprop:Generator_RowDeletedName="CrewImmigrationRowDeleted" msprop:Generator_RowEvArgName="CrewImmigrationRowChangeEvent" msprop:Generator_RowChangedName="CrewImmigrationRowChanged" msprop:Generator_RowClassName="CrewImmigrationRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dDateOfBirth" msprop:Generator_ColumnVarNameInTable="columndDateOfBirth" msprop:Generator_ColumnPropNameInRow="dDateOfBirth" msprop:Generator_ColumnPropNameInTable="dDateOfBirthColumn" msprop:Generator_UserColumnName="dDateOfBirth" type="xs:dateTime" minOccurs="0" />
              <xs:element name="cDocName" msprop:Generator_ColumnVarNameInTable="columncDocName" msprop:Generator_ColumnPropNameInRow="cDocName" msprop:Generator_ColumnPropNameInTable="cDocNameColumn" msprop:Generator_UserColumnName="cDocName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FullName" msdata:ReadOnly="true" msdata:Expression="cFamilyName + ' ' + cMiddleName + ' ' + cFirstName" msprop:Generator_ColumnVarNameInTable="columnFullName" msprop:Generator_ColumnPropNameInRow="FullName" msprop:Generator_ColumnPropNameInTable="FullNameColumn" msprop:Generator_UserColumnName="FullName" type="xs:string" minOccurs="0" />
              <xs:element name="nCrewId" msprop:Generator_ColumnVarNameInTable="columnnCrewId" msprop:Generator_ColumnPropNameInRow="nCrewId" msprop:Generator_ColumnPropNameInTable="nCrewIdColumn" msprop:Generator_UserColumnName="nCrewId">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cNumber" msprop:Generator_ColumnVarNameInTable="columncNumber" msprop:Generator_ColumnPropNameInRow="cNumber" msprop:Generator_ColumnPropNameInTable="cNumberColumn" msprop:Generator_UserColumnName="cNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblTrainingPlanDetail" msprop:Generator_TableClassName="tblTrainingPlanDetailDataTable" msprop:Generator_TableVarName="tabletblTrainingPlanDetail" msprop:Generator_TablePropName="tblTrainingPlanDetail" msprop:Generator_RowDeletingName="tblTrainingPlanDetailRowDeleting" msprop:Generator_UserTableName="tblTrainingPlanDetail" msprop:Generator_RowChangingName="tblTrainingPlanDetailRowChanging" msprop:Generator_RowEvHandlerName="tblTrainingPlanDetailRowChangeEventHandler" msprop:Generator_RowDeletedName="tblTrainingPlanDetailRowDeleted" msprop:Generator_RowEvArgName="tblTrainingPlanDetailRowChangeEvent" msprop:Generator_RowChangedName="tblTrainingPlanDetailRowChanged" msprop:Generator_RowClassName="tblTrainingPlanDetailRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
              <xs:element name="nRequest" msprop:Generator_ColumnVarNameInTable="columnnRequest" msprop:Generator_ColumnPropNameInRow="nRequest" msprop:Generator_ColumnPropNameInTable="nRequestColumn" msprop:Generator_UserColumnName="nRequest" type="xs:int" minOccurs="0" />
              <xs:element name="dLeave" msprop:Generator_ColumnVarNameInTable="columndLeave" msprop:Generator_ColumnPropNameInRow="dLeave" msprop:Generator_ColumnPropNameInTable="dLeaveColumn" msprop:Generator_UserColumnName="dLeave" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dSanSangLenTau" msprop:Generator_ColumnVarNameInTable="columndSanSangLenTau" msprop:Generator_ColumnPropNameInRow="dSanSangLenTau" msprop:Generator_ColumnPropNameInTable="dSanSangLenTauColumn" msprop:Generator_UserColumnName="dSanSangLenTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dDuKienRoiTau" msprop:Generator_ColumnVarNameInTable="columndDuKienRoiTau" msprop:Generator_ColumnPropNameInRow="dDuKienRoiTau" msprop:Generator_ColumnPropNameInTable="dDuKienRoiTauColumn" msprop:Generator_UserColumnName="dDuKienRoiTau" type="xs:dateTime" minOccurs="0" />
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" type="xs:int" />
              <xs:element name="nTrainingPlanID" msprop:Generator_ColumnVarNameInTable="columnnTrainingPlanID" msprop:Generator_ColumnPropNameInRow="nTrainingPlanID" msprop:Generator_ColumnPropNameInTable="nTrainingPlanIDColumn" msprop:Generator_UserColumnName="nTrainingPlanID" type="xs:int" minOccurs="0" />
              <xs:element name="isConfirm" msprop:Generator_ColumnVarNameInTable="columnisConfirm" msprop:Generator_ColumnPropNameInRow="isConfirm" msprop:Generator_ColumnPropNameInTable="isConfirmColumn" msprop:Generator_UserColumnName="isConfirm" type="xs:boolean" minOccurs="0" />
              <xs:element name="nCrewID" msprop:Generator_ColumnVarNameInTable="columnnCrewID" msprop:Generator_ColumnPropNameInRow="nCrewID" msprop:Generator_ColumnPropNameInTable="nCrewIDColumn" msprop:Generator_UserColumnName="nCrewID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="isDelete" msprop:Generator_ColumnVarNameInTable="columnisDelete" msprop:Generator_ColumnPropNameInRow="isDelete" msprop:Generator_ColumnPropNameInTable="isDeleteColumn" msprop:Generator_UserColumnName="isDelete" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblNewCrew" msprop:Generator_TableClassName="tblNewCrewDataTable" msprop:Generator_TableVarName="tabletblNewCrew" msprop:Generator_TablePropName="tblNewCrew" msprop:Generator_RowDeletingName="tblNewCrewRowDeleting" msprop:Generator_UserTableName="tblNewCrew" msprop:Generator_RowChangingName="tblNewCrewRowChanging" msprop:Generator_RowEvHandlerName="tblNewCrewRowChangeEventHandler" msprop:Generator_RowDeletedName="tblNewCrewRowDeleted" msprop:Generator_RowEvArgName="tblNewCrewRowChangeEvent" msprop:Generator_RowChangedName="tblNewCrewRowChanged" msprop:Generator_RowClassName="tblNewCrewRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dKyHopDong" msprop:Generator_ColumnVarNameInTable="columndKyHopDong" msprop:Generator_ColumnPropNameInRow="dKyHopDong" msprop:Generator_ColumnPropNameInTable="dKyHopDongColumn" msprop:Generator_UserColumnName="dKyHopDong" type="xs:dateTime" minOccurs="0" />
              <xs:element name="isActive" msprop:Generator_ColumnVarNameInTable="columnisActive" msprop:Generator_ColumnPropNameInRow="isActive" msprop:Generator_ColumnPropNameInTable="isActiveColumn" msprop:Generator_UserColumnName="isActive" type="xs:boolean" minOccurs="0" />
              <xs:element name="cFirstName" msprop:Generator_ColumnVarNameInTable="columncFirstName" msprop:Generator_ColumnPropNameInRow="cFirstName" msprop:Generator_ColumnPropNameInTable="cFirstNameColumn" msprop:Generator_UserColumnName="cFirstName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cMiddleName" msprop:Generator_ColumnVarNameInTable="columncMiddleName" msprop:Generator_ColumnPropNameInRow="cMiddleName" msprop:Generator_ColumnPropNameInTable="cMiddleNameColumn" msprop:Generator_UserColumnName="cMiddleName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cFamilyName" msprop:Generator_ColumnVarNameInTable="columncFamilyName" msprop:Generator_ColumnPropNameInRow="cFamilyName" msprop:Generator_ColumnPropNameInTable="cFamilyNameColumn" msprop:Generator_UserColumnName="cFamilyName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FullName" msdata:ReadOnly="true" msdata:Expression="cFamilyName + ' ' + cMiddleName + ' ' + cFirstName" msprop:Generator_ColumnVarNameInTable="columnFullName" msprop:Generator_ColumnPropNameInRow="FullName" msprop:Generator_ColumnPropNameInTable="FullNameColumn" msprop:Generator_UserColumnName="FullName" type="xs:string" minOccurs="0" />
              <xs:element name="iRankType" msprop:Generator_ColumnVarNameInTable="columniRankType" msprop:Generator_ColumnPropNameInRow="iRankType" msprop:Generator_ColumnPropNameInTable="iRankTypeColumn" msprop:Generator_UserColumnName="iRankType" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblSumary" msprop:Generator_TableClassName="tblSumaryDataTable" msprop:Generator_TableVarName="tabletblSumary" msprop:Generator_TablePropName="tblSumary" msprop:Generator_RowDeletingName="tblSumaryRowDeleting" msprop:Generator_UserTableName="tblSumary" msprop:Generator_RowChangingName="tblSumaryRowChanging" msprop:Generator_RowEvHandlerName="tblSumaryRowChangeEventHandler" msprop:Generator_RowDeletedName="tblSumaryRowDeleted" msprop:Generator_RowEvArgName="tblSumaryRowChangeEvent" msprop:Generator_RowChangedName="tblSumaryRowChanged" msprop:Generator_RowClassName="tblSumaryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cRankName" msprop:Generator_ColumnVarNameInTable="columncRankName" msprop:Generator_ColumnPropNameInRow="cRankName" msprop:Generator_ColumnPropNameInTable="cRankNameColumn" msprop:Generator_UserColumnName="cRankName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cGroupName" msprop:Generator_ColumnVarNameInTable="columncGroupName" msprop:Generator_ColumnPropNameInRow="cGroupName" msprop:Generator_ColumnPropNameInTable="cGroupNameColumn" msprop:Generator_UserColumnName="cGroupName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="colCount" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncolCount" msprop:Generator_ColumnPropNameInRow="colCount" msprop:Generator_ColumnPropNameInTable="colCountColumn" msprop:Generator_UserColumnName="colCount" type="xs:int" minOccurs="0" />
              <xs:element name="nRankLevel" msprop:Generator_ColumnVarNameInTable="columnnRankLevel" msprop:Generator_ColumnPropNameInRow="nRankLevel" msprop:Generator_ColumnPropNameInTable="nRankLevelColumn" msprop:Generator_UserColumnName="nRankLevel" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblGroupVessel" msprop:Generator_TableClassName="tblGroupVesselDataTable" msprop:Generator_TableVarName="tabletblGroupVessel" msprop:Generator_TablePropName="tblGroupVessel" msprop:Generator_RowDeletingName="tblGroupVesselRowDeleting" msprop:Generator_UserTableName="tblGroupVessel" msprop:Generator_RowChangingName="tblGroupVesselRowChanging" msprop:Generator_RowEvHandlerName="tblGroupVesselRowChangeEventHandler" msprop:Generator_RowDeletedName="tblGroupVesselRowDeleted" msprop:Generator_RowEvArgName="tblGroupVesselRowChangeEvent" msprop:Generator_RowChangedName="tblGroupVesselRowChanged" msprop:Generator_RowClassName="tblGroupVesselRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="cStatus" msprop:Generator_ColumnVarNameInTable="columncStatus" msprop:Generator_ColumnPropNameInRow="cStatus" msprop:Generator_ColumnPropNameInTable="cStatusColumn" msprop:Generator_UserColumnName="cStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cGroupName" msprop:Generator_ColumnVarNameInTable="columncGroupName" msprop:Generator_ColumnPropNameInRow="cGroupName" msprop:Generator_ColumnPropNameInTable="cGroupNameColumn" msprop:Generator_UserColumnName="cGroupName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cVesselName" msprop:Generator_ColumnVarNameInTable="columncVesselName" msprop:Generator_ColumnPropNameInRow="cVesselName" msprop:Generator_ColumnPropNameInTable="cVesselNameColumn" msprop:Generator_UserColumnName="cVesselName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="colCount" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncolCount" msprop:Generator_ColumnPropNameInRow="colCount" msprop:Generator_ColumnPropNameInTable="colCountColumn" msprop:Generator_UserColumnName="colCount" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblAssignment" />
      <xs:field xpath="mstns:nAssignmentId" />
    </xs:unique>
    <xs:unique name="tblCrew_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblCrew" />
      <xs:field xpath="mstns:nCrewId" />
    </xs:unique>
    <xs:unique name="tblCrewType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblCrewType" />
      <xs:field xpath="mstns:id" />
    </xs:unique>
    <xs:unique name="tblRank_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblRank" />
      <xs:field xpath="mstns:nRankId" />
    </xs:unique>
    <xs:unique name="tblCertificateCrew_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblCertificateCrew" />
      <xs:field xpath="mstns:nCertificateCrew" />
    </xs:unique>
    <xs:unique name="tblEducation_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblEducation" />
      <xs:field xpath="mstns:nEducationId" />
    </xs:unique>
    <xs:unique name="tblImmigrationCrew_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblImmigrationCrew" />
      <xs:field xpath="mstns:nImmigrationCrewId" />
    </xs:unique>
    <xs:unique name="tblExprience_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblExprience" />
      <xs:field xpath="mstns:nExprienceId" />
    </xs:unique>
    <xs:unique name="tblDulieuKeToan_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblDulieuKeToan" />
      <xs:field xpath="mstns:nCrewId" />
    </xs:unique>
    <xs:unique name="tblShortPlan_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblShortPlan" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="tblToTrinh_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblToTrinh" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="tblKeHoach_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblKeHoach" />
      <xs:field xpath="mstns:Planid" />
    </xs:unique>
    <xs:unique name="tblGuiChuTau_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblGuiChuTau" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="CrewImmigration_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CrewImmigration" />
      <xs:field xpath="mstns:nCrewId" />
    </xs:unique>
    <xs:unique name="tblTrainingPlanDetail_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblTrainingPlanDetail" />
      <xs:field xpath="mstns:id" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="FK_tblAssignment_tblCrew" msdata:parent="tblCrew" msdata:child="tblAssignment" msdata:parentkey="nCrewId" msdata:childkey="nCrewid" msprop:Generator_UserChildTable="tblAssignment" msprop:Generator_ChildPropName="GettblAssignmentRows" msprop:Generator_ParentPropName="tblCrewRow" msprop:Generator_UserRelationName="FK_tblAssignment_tblCrew" msprop:Generator_RelationVarName="relationFK_tblAssignment_tblCrew" msprop:Generator_UserParentTable="tblCrew" />
      <msdata:Relationship name="FK_tblCrew_tblCrewType" msdata:parent="tblCrewType" msdata:child="tblCrew" msdata:parentkey="id" msdata:childkey="iCrewType" msprop:Generator_UserChildTable="tblCrew" msprop:Generator_ChildPropName="GettblCrewRows" msprop:Generator_ParentPropName="tblCrewTypeRow" msprop:Generator_UserRelationName="FK_tblCrew_tblCrewType" msprop:Generator_RelationVarName="relationFK_tblCrew_tblCrewType" msprop:Generator_UserParentTable="tblCrewType" />
      <msdata:Relationship name="FK_tblCrew_tblRank" msdata:parent="tblRank" msdata:child="tblCrew" msdata:parentkey="nRankId" msdata:childkey="nRankID" msprop:Generator_UserChildTable="tblCrew" msprop:Generator_ChildPropName="GettblCrewRows" msprop:Generator_ParentPropName="tblRankRow" msprop:Generator_UserRelationName="FK_tblCrew_tblRank" msprop:Generator_RelationVarName="relationFK_tblCrew_tblRank" msprop:Generator_UserParentTable="tblRank" />
      <msdata:Relationship name="FK_tblRank_tblCrewType" msdata:parent="tblCrewType" msdata:child="tblRank" msdata:parentkey="id" msdata:childkey="iRankType" msprop:Generator_UserChildTable="tblRank" msprop:Generator_ChildPropName="GettblRankRows" msprop:Generator_ParentPropName="tblCrewTypeRow" msprop:Generator_UserRelationName="FK_tblRank_tblCrewType" msprop:Generator_RelationVarName="relationFK_tblRank_tblCrewType" msprop:Generator_UserParentTable="tblCrewType" />
      <msdata:Relationship name="FK_tblCertificateCrew_tblCrew" msdata:parent="tblCrew" msdata:child="tblCertificateCrew" msdata:parentkey="nCrewId" msdata:childkey="nCrewid" msprop:Generator_UserChildTable="tblCertificateCrew" msprop:Generator_ChildPropName="GettblCertificateCrewRows" msprop:Generator_UserParentTable="tblCrew" msprop:Generator_UserRelationName="FK_tblCertificateCrew_tblCrew" msprop:Generator_RelationVarName="relationFK_tblCertificateCrew_tblCrew" msprop:Generator_ParentPropName="tblCrewRow" />
      <msdata:Relationship name="FK_tblEducation_tblCrew" msdata:parent="tblCrew" msdata:child="tblEducation" msdata:parentkey="nCrewId" msdata:childkey="cCrewID" msprop:Generator_UserChildTable="tblEducation" msprop:Generator_ChildPropName="GettblEducationRows" msprop:Generator_UserParentTable="tblCrew" msprop:Generator_UserRelationName="FK_tblEducation_tblCrew" msprop:Generator_RelationVarName="relationFK_tblEducation_tblCrew" msprop:Generator_ParentPropName="tblCrewRow" />
      <msdata:Relationship name="FK_tblImmigrationCrew_tblCrew" msdata:parent="tblCrew" msdata:child="tblImmigrationCrew" msdata:parentkey="nCrewId" msdata:childkey="nCrewId" msprop:Generator_UserChildTable="tblImmigrationCrew" msprop:Generator_ChildPropName="GettblImmigrationCrewRows" msprop:Generator_UserParentTable="tblCrew" msprop:Generator_UserRelationName="FK_tblImmigrationCrew_tblCrew" msprop:Generator_RelationVarName="relationFK_tblImmigrationCrew_tblCrew" msprop:Generator_ParentPropName="tblCrewRow" />
      <msdata:Relationship name="FK_tblExprience_tblRank" msdata:parent="tblRank" msdata:child="tblExprience" msdata:parentkey="nRankId" msdata:childkey="nRankId" msprop:Generator_UserChildTable="tblExprience" msprop:Generator_ChildPropName="GettblExprienceRows" msprop:Generator_ParentPropName="tblRankRow" msprop:Generator_UserRelationName="FK_tblExprience_tblRank" msprop:Generator_RelationVarName="relationFK_tblExprience_tblRank" msprop:Generator_UserParentTable="tblRank" />
      <msdata:Relationship name="FK_tblAssignment_tblCrew1" msdata:parent="tblTrainingCrewCourse" msdata:child="tblAssignment" msdata:parentkey="nCrewId" msdata:childkey="nCrewid" msprop:Generator_UserChildTable="tblAssignment" msprop:Generator_ChildPropName="GettblAssignmentRows" msprop:Generator_UserParentTable="tblTrainingCrewCourse" msprop:Generator_UserRelationName="FK_tblAssignment_tblCrew1" msprop:Generator_RelationVarName="relationFK_tblAssignment_tblCrew1" msprop:Generator_ParentPropName="tblTrainingCrewCourseRow" />
      <msdata:Relationship name="FK_tblShortPlan_tblKeHoach" msdata:parent="tblKeHoach" msdata:child="tblShortPlan" msdata:parentkey="Planid" msdata:childkey="PlanID" msprop:Generator_UserChildTable="tblShortPlan" msprop:Generator_ChildPropName="GettblShortPlanRows" msprop:Generator_UserParentTable="tblKeHoach" msprop:Generator_UserRelationName="FK_tblShortPlan_tblKeHoach" msprop:Generator_RelationVarName="relationFK_tblShortPlan_tblKeHoach" msprop:Generator_ParentPropName="tblKeHoachRow" />
      <msdata:Relationship name="FK_tblAssignment_tblCrew2" msdata:parent="tblGuiChuTau" msdata:child="tblAssignment" msdata:parentkey="nCrewID" msdata:childkey="nCrewid" msprop:Generator_UserChildTable="tblAssignment" msprop:Generator_ChildPropName="GettblAssignmentRows" msprop:Generator_UserParentTable="tblGuiChuTau" msprop:Generator_UserRelationName="FK_tblAssignment_tblCrew2" msprop:Generator_RelationVarName="relationFK_tblAssignment_tblCrew2" msprop:Generator_ParentPropName="tblGuiChuTauRow" />
      <msdata:Relationship name="FK_tblAssignment_tblCrew3" msdata:parent="CrewImmigration" msdata:child="tblAssignment" msdata:parentkey="nCrewId" msdata:childkey="nCrewid" msprop:Generator_UserChildTable="tblAssignment" msprop:Generator_ChildPropName="GettblAssignmentRows" msprop:Generator_UserParentTable="CrewImmigration" msprop:Generator_UserRelationName="FK_tblAssignment_tblCrew3" msprop:Generator_RelationVarName="relationFK_tblAssignment_tblCrew3" msprop:Generator_ParentPropName="CrewImmigrationRow" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>